mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-22 04:14:25 +00:00
Merge branch 'pr/Felixoid/273'
This commit is contained in:
commit
40cee8a54c
@ -127,10 +127,10 @@ func (server *Server) Run(ctx context.Context, options ...RunOption) error {
|
|||||||
scheme = "https"
|
scheme = "https"
|
||||||
}
|
}
|
||||||
host, port, _ := net.SplitHostPort(listener.Addr().String())
|
host, port, _ := net.SplitHostPort(listener.Addr().String())
|
||||||
log.Printf("HTTP server is listening at: %s", scheme+"://"+host+":"+port+path)
|
log.Printf("HTTP server is listening at: %s", scheme+"://"+net.JoinHostPort(host, port)+path)
|
||||||
if server.options.Address == "0.0.0.0" {
|
if server.options.Address == "0.0.0.0" {
|
||||||
for _, address := range listAddresses() {
|
for _, address := range listAddresses() {
|
||||||
log.Printf("Alternative URL: %s", scheme+"://"+address+":"+port+path)
|
log.Printf("Alternative URL: %s", scheme+"://"+net.JoinHostPort(address, port)+path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user