Public IP endpoint with GET /ip fixing #319

This commit is contained in:
Quentin McGaw
2020-12-27 21:06:00 +00:00
parent 2dc674559e
commit 82a02287ac
7 changed files with 92 additions and 5 deletions

View File

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