1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

miscellaneous

Former-commit-id: bc2fddd4da23ec917be5dd9e8bddd4b13cdce050
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-01-07 03:41:07 +02:00
parent 79a965ec2d
commit b2c5ec03fd
23 changed files with 18 additions and 203 deletions

View File

@@ -215,9 +215,5 @@ func ResolveSchemeFromVHost(vhost string) string {
// and returns its URL, pure implementation but it does the job.
func ResolveURL(scheme string, addr string) string {
host := ResolveVHost(addr)
if host == "0.0.0.0" {
host = "localhost"
}
return scheme + "://" + host
}