1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00

Add virtual listen same as NoListen- some changes in order the server_test no need any system modification

This commit is contained in:
Makis Maropoulos
2016-07-05 14:29:32 +02:00
parent 93dc7c7e48
commit afa5b57dc7
5 changed files with 59 additions and 39 deletions

View File

@@ -431,10 +431,15 @@ func (s *Server) Open() error {
}
}
if s.Config.Virtual {
return nil
}
if s.Config.Mode > 0 {
return s.listenUNIX()
}
return s.listen()
}
// Close terminates the server