1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

start of the server tunneling feature - probably will help new users a lot but still thinking of it

Former-commit-id: b0b41ef10b0b6369661991af16757c1de306557b
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-16 16:10:46 +03:00
parent 1c2472c53f
commit 9364dde3ca
2 changed files with 71 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ import (
"github.com/kataras/iris/core/host"
"github.com/kataras/iris/core/netutil"
"github.com/kataras/iris/core/router"
// handlerconv conversions
"github.com/kataras/iris/core/handlerconv"
// cache conversions
@@ -231,7 +232,9 @@ func (app *Application) SubdomainRedirect(from, to router.Party) router.Party {
// Returns itself in order to be used like `app:= New().Configure(...)`
func (app *Application) Configure(configurators ...Configurator) *Application {
for _, cfg := range configurators {
cfg(app)
if cfg != nil {
cfg(app)
}
}
return app