aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-08-16 21:48:13 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-08-16 21:58:28 +0100
commitf52e26a6bf532da05f732ee7a6f0fcd6127e3a15 (patch)
tree98de1ca84170c87e9be29317f5d6c8673346ea5c /cmd
parent6bad2d072333e1b6574dc206c4019130e9a89e88 (diff)
Allow selecting which ip to listen on
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cashierd/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cashierd/main.go b/cmd/cashierd/main.go
index bc7cba4..a989e12 100644
--- a/cmd/cashierd/main.go
+++ b/cmd/cashierd/main.go
@@ -371,7 +371,7 @@ func main() {
h := handlers.LoggingHandler(logfile, r)
fmt.Println("Starting server...")
- l := fmt.Sprintf(":%d", config.Server.Port)
+ l := fmt.Sprintf("%s:%d", config.Server.Addr, config.Server.Port)
if config.Server.UseTLS {
log.Fatal(http.ListenAndServeTLS(l, config.Server.TLSCert, config.Server.TLSKey, h))
}