HTTP_CONTROL_SERVER_LOG variable, fixes #249

This commit is contained in:
Quentin McGaw
2020-10-17 22:21:20 +00:00
parent 4da9607b4d
commit b27e637894
6 changed files with 18 additions and 3 deletions

View File

@@ -237,7 +237,8 @@ func _main(background context.Context, args []string) int { //nolint:gocognit,go
allSettings.VersionInformation, allSettings.OpenVPN.Provider.PortForwarding.Enabled, openvpnLooper.PortForward,
)
controlServerAddress := fmt.Sprintf("0.0.0.0:%d", allSettings.ControlServer.Port)
httpServer := server.New(controlServerAddress, logger, openvpnLooper, unboundLooper, updaterLooper)
controlServerLogging := allSettings.ControlServer.Log
httpServer := server.New(controlServerAddress, controlServerLogging, logger, openvpnLooper, unboundLooper, updaterLooper)
wg.Add(1)
go httpServer.Run(ctx, wg)