mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
Fix issue #757
Fix not correct host in "Now listening on:" message when using iris.Listener Former-commit-id: a4f071e936c86a425a84986285625de542bb6d33
This commit is contained in:
parent
99c6d3546e
commit
8de1a9d4a2
2
iris.go
2
iris.go
|
@ -470,7 +470,7 @@ type Runner func(*Application) error
|
|||
func Listener(l net.Listener, hostConfigs ...host.Configurator) Runner {
|
||||
return func(app *Application) error {
|
||||
app.config.vhost = netutil.ResolveVHost(l.Addr().String())
|
||||
return app.NewHost(new(http.Server)).
|
||||
return app.NewHost(&http.Server{Addr: l.Addr().String()}).
|
||||
Configure(hostConfigs...).
|
||||
Serve(l)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user