1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 04:17:03 +00:00

apps.Switch(apps.Hosts...) example

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-18 04:17:53 +03:00
parent 589c8c6242
commit 5481b9a6c1
19 changed files with 164 additions and 114 deletions

View File

@@ -23,7 +23,7 @@ import (
func WriteStartupLogOnServe(w io.Writer) func(TaskHost) {
return func(h TaskHost) {
guessScheme := netutil.ResolveScheme(h.Supervisor.manuallyTLS || h.Supervisor.Fallback != nil)
addr := h.Supervisor.friendlyAddr
addr := h.Supervisor.FriendlyAddr
if addr == "" {
addr = h.Supervisor.Server.Addr
}