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:
parent
36c5896068
commit
16264d0a0f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue