diff --git a/proxy/lib/snowflake.go b/proxy/lib/snowflake.go index 6fcc46d..d6686cc 100644 --- a/proxy/lib/snowflake.go +++ b/proxy/lib/snowflake.go @@ -32,6 +32,7 @@ import ( "fmt" "io" "log" + mathRand "math/rand" "net" "net/http" "net/url" @@ -691,6 +692,7 @@ 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") }