1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-12 19:40:06 +08:00
1Panel/agent/init/app/app.go

17 lines
293 B
Go
Raw Permalink Normal View History

2024-07-23 14:48:37 +08:00
package app
import (
"github.com/1Panel-dev/1Panel/agent/utils/docker"
"github.com/1Panel-dev/1Panel/agent/utils/firewall"
)
func Init() {
2024-12-19 22:21:00 +08:00
go func() {
_ = docker.CreateDefaultDockerNetwork()
2024-07-23 14:48:37 +08:00
2024-12-19 22:21:00 +08:00
if f, err := firewall.NewFirewallClient(); err == nil {
_ = f.EnableForward()
}
}()
2024-07-23 14:48:37 +08:00
}