1
0

In utils.NetworkType() added Yggdrasil.

This commit is contained in:
Alexander Andreev 2023-08-06 01:59:25 +04:00
parent 30ffa6805b
commit 6106e817cf
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -25,6 +25,8 @@ func NetworkType(host string) (string, string) {
return "i2p", "http" return "i2p", "http"
} else if strings.Contains(host, "onion") { } else if strings.Contains(host, "onion") {
return "tor", "http" return "tor", "http"
} else if strings.Contains(host, "[300:") {
return "ygg", "http"
} else { } else {
return "www", "https" return "www", "https"
} }