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:
@@ -37,6 +37,8 @@ type Server struct {
|
||||
//
|
||||
// example: https://github.com/iris-contrib/examples/tree/master/multiserver_listening2
|
||||
RedirectTo string
|
||||
// Virtual If this server is not really listens to a real host, it mostly used in order to achieve testing without system modifications
|
||||
Virtual bool
|
||||
}
|
||||
|
||||
// DefaultServer returns the default configs for the server
|
||||
|
||||
Reference in New Issue
Block a user