X-Git-Url: http://jaekl.net/gitweb/?p=quanweb.git;a=blobdiff_plain;f=main%2Fmain.go;h=b54712f7efaf7fbb0ffc80a4893527614cc61bc4;hp=d30f84b9e76138b41883797c91cb474d5761b786;hb=e2b95cefd1e34e652317fdf82595932c0bf0c6bb;hpb=32c817b6cf7484487c1160cec8a4b9e770b8404a diff --git a/main/main.go b/main/main.go index d30f84b..b54712f 100644 --- a/main/main.go +++ b/main/main.go @@ -3,6 +3,7 @@ package main import ( "database/sql" "net/http" + "strconv" ) // ============================================================================ @@ -17,5 +18,6 @@ func main() { http.HandleFunc("/", handler) - http.ListenAndServe(":8001", nil) + config := GetConfig() + http.ListenAndServe(":" + strconv.Itoa(config.port), nil) }