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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user