mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
fix: check doh permission
This commit is contained in:
@ -25,6 +25,10 @@ func (d *ProxyTLSDialer) DialTLS(network, address string) (conn net.Conn, err er
|
||||
return
|
||||
}
|
||||
|
||||
if !d.cm.allowProxy {
|
||||
return
|
||||
}
|
||||
|
||||
var proxy string
|
||||
|
||||
if proxy, err = d.cm.switchToReachableServer(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user