diff --git a/src/cmd/tusd/http.go b/src/cmd/tusd/http.go index 5a61ab6..f1515a6 100644 --- a/src/cmd/tusd/http.go +++ b/src/cmd/tusd/http.go @@ -36,6 +36,9 @@ func serveHttp() error { http.HandleFunc("/", route) addr := ":1080" + if port := os.Getenv("TUSD_PORT"); port != "" { + addr = ":"+port + } log.Printf("serving clients at %s", addr) return http.ListenAndServe(addr, nil)