mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Cecylia Bocovich <cohosh@torproject.org>
This commit is contained in:
parent
7974463653
commit
5e4619bae1
1 changed files with 3 additions and 1 deletions
|
@ -706,7 +706,9 @@ func checkIsRelayURLAcceptable(
|
|||
if !isRemoteAddress(ip) {
|
||||
return fmt.Errorf("rejected Relay URL: private IPs are not allowed")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// move net.LookupIP(hostname) and isRemoteAddress checks here
|
||||
}
|
||||
}
|
||||
if !allowNonTLSRelay && parsedRelayURL.Scheme != "wss" {
|
||||
return fmt.Errorf("rejected Relay URL protocol: non-TLS not allowed")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue