aboutsummaryrefslogtreecommitdiff
path: root/cmd/cashierd/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cashierd/main.go')
-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))
}