mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:36:28 +01:00
Merge pull request #1 from itcrow/itcrow-patch-1
Fix issue #757 Former-commit-id: 3addc5b8f3d937785a0396ee49ba56bc94e11f00
This commit is contained in:
commit
422306c6c5
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