projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feba35c
)
Make sure that complete server URL is logged on startup
author
bep
<bjorn.erik.pedersen@gmail.com>
Sat, 9 May 2015 06:02:52 +0000
(08:02 +0200)
committer
bep
<bjorn.erik.pedersen@gmail.com>
Sat, 9 May 2015 06:03:06 +0000
(08:03 +0200)
Fixes #1113
commands/server.go
patch
|
blob
|
history
diff --git
a/commands/server.go
b/commands/server.go
index 528a08f2cbde769ac47657547f51f778a4a34930..c8fe7ee4b2fedb988b104ee2af5063ba3fd5f682 100644
(file)
--- a/
commands/server.go
+++ b/
commands/server.go
@@
-134,7
+134,7
@@
func serve(port int) {
http.Handle(u.Path, http.StripPrefix(u.Path, fileserver))
}
- u.Host =
serverInterface
+ u.Host =
net.JoinHostPort(serverInterface, strconv.Itoa(serverPort))
u.Scheme = "http"
jww.FEEDBACK.Printf("Web Server is available at %s\n", u.String())
fmt.Println("Press Ctrl+C to stop")