Fixes #254 new variable FIREWALL_INPUT_PORTS (#260)

This commit is contained in:
Quentin McGaw
2020-10-18 09:22:28 -04:00
committed by GitHub
parent 84c1f46ae4
commit c932f48a95
6 changed files with 45 additions and 0 deletions

View File

@@ -186,6 +186,14 @@ func _main(background context.Context, args []string) int { //nolint:gocognit,go
}
}
for _, port := range allSettings.Firewall.InputPorts {
err = firewallConf.SetAllowedPort(ctx, port, defaultInterface)
if err != nil {
logger.Error(err)
return 1
}
}
wg := &sync.WaitGroup{}
go collectStreamLines(ctx, streamMerger, logger, signalTunnelReady)