mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Revert "Add delay"
This reverts commit 97c73bcab662de0033bbaeadb76dea0a3ca274da.
This commit is contained in:
parent
e983f7425c
commit
7974463653
1 changed files with 0 additions and 2 deletions
|
@ -32,7 +32,6 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
mathRand "math/rand"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
@ -692,7 +691,6 @@ func checkIsRelayURLAcceptable(
|
|||
if !allowPrivateIPs {
|
||||
hostname := parsedRelayURL.Hostname()
|
||||
ipArray, _ := net.LookupIP(hostname)
|
||||
time.Sleep(time.Second * time.Duration(mathRand.Float64()))
|
||||
if isHostnameLocal(hostname) {
|
||||
return fmt.Errorf("rejected Relay URL: private hostnames are not allowed")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue