Revert "Add delay"

This reverts commit 97c73bcab662de0033bbaeadb76dea0a3ca274da.
This commit is contained in:
Neel Chauhan 2024-10-14 10:49:03 -04:00
parent e983f7425c
commit 7974463653

View file

@ -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")
}