1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-27 06:47:08 +00:00

new NonBlocking option and Wait method on Application. See HISTORY.md for more

This commit is contained in:
Gerasimos (Makis) Maropoulos
2024-01-14 06:58:17 +02:00
parent 5ef854d835
commit 70882914d4
5 changed files with 174 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ func ResolveVHost(addr string) string {
}
if idx := strings.IndexByte(addr, ':'); idx == 0 {
// only port, then return the 0.0.0.0
// only port, then return the 0.0.0.0:PORT
return /* "0.0.0.0" */ "localhost" + addr[idx:]
} else if idx > 0 { // if 0.0.0.0:80 let's just convert it to localhost.
if addr[0:idx] == "0.0.0.0" {