mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 00:27:06 +00:00
fix: ensure doh connections are closed when it is disabled
This commit is contained in:
@ -230,6 +230,10 @@ func (cm *ClientManager) DisallowProxy() {
|
||||
|
||||
cm.allowProxy = false
|
||||
cm.host = rootURL
|
||||
|
||||
for _, client := range cm.clients {
|
||||
client.CloseConnections()
|
||||
}
|
||||
}
|
||||
|
||||
// IsProxyEnabled returns whether we are currently proxying requests.
|
||||
|
||||
Reference in New Issue
Block a user