diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-08-16 21:48:13 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-08-16 21:58:28 +0100 |
commit | f52e26a6bf532da05f732ee7a6f0fcd6127e3a15 (patch) | |
tree | 98de1ca84170c87e9be29317f5d6c8673346ea5c /cmd | |
parent | 6bad2d072333e1b6574dc206c4019130e9a89e88 (diff) |
Allow selecting which ip to listen on
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/cashierd/main.go | 2 |
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)) } |