HTTP proxy 24 hours timeout, fix #303

This commit is contained in:
Quentin McGaw
2020-11-21 01:26:02 +00:00
parent 1cc0f5fee9
commit fb62910b17
6 changed files with 17 additions and 28 deletions

View File

@@ -243,7 +243,7 @@ func _main(background context.Context, args []string) int { //nolint:gocognit,go
go publicIPLooper.RunRestartTicker(ctx, wg)
publicIPLooper.SetPeriod(allSettings.PublicIPPeriod) // call after RunRestartTicker
httpProxyLooper := httpproxy.NewLooper(httpClient, logger, allSettings.HTTPProxy)
httpProxyLooper := httpproxy.NewLooper(logger, allSettings.HTTPProxy)
wg.Add(1)
go httpProxyLooper.Run(ctx, wg)