mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
Fix: close HTTP client connections when tunnel comes up
This commit is contained in:
@@ -17,6 +17,8 @@ type tunnelUpData struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (l *Loop) onTunnelUp(ctx context.Context, data tunnelUpData) {
|
func (l *Loop) onTunnelUp(ctx context.Context, data tunnelUpData) {
|
||||||
|
l.client.CloseIdleConnections()
|
||||||
|
|
||||||
if l.dnsLooper.GetSettings().Enabled {
|
if l.dnsLooper.GetSettings().Enabled {
|
||||||
_, _ = l.dnsLooper.ApplyStatus(ctx, constants.Running)
|
_, _ = l.dnsLooper.ApplyStatus(ctx, constants.Running)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user