|
@@ -113,6 +113,8 @@ func main() {
|
|
|
|
|
|
|
|
fs := http.FileServer(http.Dir("/var/www/static"))
|
|
fs := http.FileServer(http.Dir("/var/www/static"))
|
|
|
|
|
|
|
|
- panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), fs))
|
|
|
|
|
|
|
+ http.Handle("static", fs)
|
|
|
|
|
+
|
|
|
|
|
+ panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), nil))
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|