Fixed port from 8000 to just 80(tm)

This commit is contained in:
CornierKhan1 2018-09-07 08:35:58 +10:00 committed by GitHub
parent 6d2d566802
commit 89ec54ec66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ type UNR struct {
func main() {
fmt.Println("Starting HTTP connection (Port 8000)...")
http.HandleFunc("/", handler) // each request calls handler
log.Fatal(http.ListenAndServe(":8000", nil))
log.Fatal(http.ListenAndServe(":80", nil))
}
func handler(w http.ResponseWriter, r *http.Request) {