made daemon only get networks once

This commit is contained in:
0xdcarns
2022-05-24 14:19:47 -04:00
parent 0832f540a7
commit 553b03c1b4
2 changed files with 5 additions and 7 deletions

View File

@@ -48,6 +48,7 @@ func Daemon() error {
if len(networks) == 0 {
return errors.New("no networks")
}
pubNetworks = append(pubNetworks, networks...)
// set ipforwarding on startup
err := local.SetIPForwarding()
if err != nil {