Use TUSD_PORT
This commit is contained in:
parent
96b92970dd
commit
0f4b92b01d
|
@ -36,6 +36,9 @@ func serveHttp() error {
|
||||||
http.HandleFunc("/", route)
|
http.HandleFunc("/", route)
|
||||||
|
|
||||||
addr := ":1080"
|
addr := ":1080"
|
||||||
|
if port := os.Getenv("TUSD_PORT"); port != "" {
|
||||||
|
addr = ":"+port
|
||||||
|
}
|
||||||
log.Printf("serving clients at %s", addr)
|
log.Printf("serving clients at %s", addr)
|
||||||
|
|
||||||
return http.ListenAndServe(addr, nil)
|
return http.ListenAndServe(addr, nil)
|
||||||
|
|
Loading…
Reference in New Issue