1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00

fix the usage of the wrong port number

This commit is contained in:
Stefan Lankes 2017-06-10 09:33:31 +02:00
parent 36c5896068
commit 16264d0a0f

View file

@ -16,12 +16,12 @@ import (
func main() {
fmt.Println("This is an \"echo\" server that displays request parameters.")
fmt.Println("Start the server and send a http request to it (e.g.")
fmt.Println("curl http://localhost:80/help). The server uses port 80.")
fmt.Println("curl http://localhost:8000/help). The server uses port 8000.")
fmt.Println("If KVM is implicitly started by our proxy, please open the port by")
fmt.Println("setting the environment variable HERMIT_APP_PORT to 80.")
fmt.Println("setting the environment variable HERMIT_APP_PORT to 8000.")
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe(":80", nil))
log.Fatal(http.ListenAndServe(":8000", nil))
}
//!+handler