fix: ensure doh connections are closed when it is disabled

This commit is contained in:
James Houlahan
2020-06-17 10:52:53 +02:00
parent 9241a9bdbf
commit 02804d067c
7 changed files with 33 additions and 6 deletions

View File

@ -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.