mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Remove false positives
This commit is contained in:
parent
f1e9f58b47
commit
e22f397d84
1 changed files with 1 additions and 4 deletions
|
@ -682,10 +682,7 @@ func checkIsRelayURLAcceptable(
|
||||||
return fmt.Errorf("rejected Relay URL: private IPs are not allowed")
|
return fmt.Errorf("rejected Relay URL: private IPs are not allowed")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ipArray, err := net.LookupIP(hostname)
|
ipArray, _ := net.LookupIP(hostname)
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("Could not look up IP")
|
|
||||||
}
|
|
||||||
for _, ip := range ipArray {
|
for _, ip := range ipArray {
|
||||||
if !isRemoteAddress(ip) {
|
if !isRemoteAddress(ip) {
|
||||||
return fmt.Errorf("rejected Relay URL: private IPs are not allowed")
|
return fmt.Errorf("rejected Relay URL: private IPs are not allowed")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue