package utils import "strings" // MainSite returns homepage address depending on network used. func MainSite(host string) string { if strings.HasPrefix(host, "i2p") { return "http://arav.i2p" } else if strings.HasPrefix(host, "onion") { return "http://.onion" } return "https://arav.top" }