mirror of
https://github.com/kataras/iris.git
synced 2026-03-03 15:06:03 +00:00
Set the default hostname to "0.0.0.0" from "127.0.0.1" - as golang's net.Listener does by default
I changed that because some guys has problems in their hosting machines,
and they should use the "127.0..0.1" instead of "0.0.0.0", if you have
problems just pass `iris.Listen("127.0.0.1:8080") instead of
`iris.Listen(":8080")`
This commit is contained in:
@@ -73,7 +73,7 @@ func TestServerHost(t *testing.T) {
|
||||
var server1, server2, server3 Server
|
||||
var expectedHost1 = "mydomain.com:1993"
|
||||
var expectedHost2 = "mydomain.com:80"
|
||||
var expectedHost3 = "127.0.0.1:9090"
|
||||
var expectedHost3 = config.DefaultServerHostname + ":9090"
|
||||
server1.Config.ListeningAddr = expectedHost1
|
||||
server2.Config.ListeningAddr = "mydomain.com"
|
||||
server3.Config.ListeningAddr = ":9090"
|
||||
|
||||
Reference in New Issue
Block a user