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) {
|
||||
l.client.CloseIdleConnections()
|
||||
|
||||
if l.dnsLooper.GetSettings().Enabled {
|
||||
_, _ = l.dnsLooper.ApplyStatus(ctx, constants.Running)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user