In utils.NetworkType() added Yggdrasil.
This commit is contained in:
parent
30ffa6805b
commit
6106e817cf
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user