@@ -61,7 +61,7 @@ func WriteStartupLogOnServe(w io.Writer) func(TaskHost) {
61
61
for _ , ip := range ips {
62
62
listeningURI := netutil .ResolveURL (guessScheme , fmt .Sprintf ("%s:%s" , ip , port ))
63
63
64
- listeningURI = "> Network: " + listeningURI
64
+ listeningURI = "> Network: " + listeningURI
65
65
listeningURIs = append (listeningURIs , listeningURI )
66
66
}
67
67
}
@@ -73,27 +73,20 @@ func WriteStartupLogOnServe(w io.Writer) func(TaskHost) {
73
73
listeningURI := netutil .ResolveURL (guessScheme , addr )
74
74
if len (listeningURIs ) > 0 {
75
75
listeningURIs [0 ] = "\n " + listeningURIs [0 ]
76
- listeningURI = "> Local: " + listeningURI
76
+ listeningURI = "> Local: " + listeningURI
77
77
}
78
78
listeningURIs = append (listeningURIs , listeningURI )
79
-
80
- _ , _ = fmt .Fprintf (w , "Now listening on: %s\n Application started. Press CTRL+C to shut down.\n " ,
81
- strings .Join (listeningURIs , "\n " ))
82
-
83
79
/*
84
- When :8080 or 0.0.0.0:8080:
85
- Now listening on:
86
- > Network: http://192.168.1.109:8080
87
- > Network: http://172.25.224.1:8080
88
- > Local: http://localhost:8080
89
- Application started. Press CTRL+C to shut down.
80
+ Now listening on:
81
+ > Network: http://192.168.1.109:8080
82
+ > Network: http://172.25.224.1:8080
83
+ > Local: http://localhost:8080
90
84
91
85
Otherwise:
92
- Iris Version: 12.2.1
93
-
94
86
Now listening on: http://192.168.1.109:8080
95
- Application started. Press CTRL+C to shut down.
96
87
*/
88
+ _ , _ = fmt .Fprintf (w , "Now listening on: %s\n Application started. Press CTRL+C to shut down.\n " ,
89
+ strings .Join (listeningURIs , "\n " ))
97
90
}
98
91
}
99
92
0 commit comments