This commit is contained in:
Andrea Spacca 2022-05-14 09:29:23 +09:00
parent 5defde54c1
commit 2f9c3cc419

View file

@ -625,7 +625,7 @@ func getURL(r *http.Request, proxyPort string) *url.URL {
host = r.Host host = r.Host
port = "" port = ""
} }
:
p := idna.New(idna.ValidateForRegistration()) p := idna.New(idna.ValidateForRegistration())
var hostFromPunycode string var hostFromPunycode string
hostFromPunycode, err = p.ToUnicode(host) hostFromPunycode, err = p.ToUnicode(host)