Skip to content

Commit

Permalink
Fix issue kataras#757
Browse files Browse the repository at this point in the history
Fix not correct host in "Now listening on:" message when using iris.Listener
  • Loading branch information
itcrow authored Sep 20, 2017
1 parent 62b0f78 commit d3bb288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iris.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d3bb288

Please sign in to comment.