mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-04 08:18:34 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !d.cm.allowProxy {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var proxy string
|
var proxy string
|
||||||
|
|
||||||
if proxy, err = d.cm.switchToReachableServer(); err != nil {
|
if proxy, err = d.cm.switchToReachableServer(); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user