Fix: close HTTP client connections when tunnel comes up

This commit is contained in:
Quentin McGaw (desktop)
2021-09-10 22:53:05 +00:00
parent 344f1bf9ee
commit 8ac2a816c3

View File

@@ -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)
}