mirror of
https://wiilab.wiimart.org/wiimart/WiiSOAP
synced 2025-09-05 21:11:02 +02:00
Edit port to 2018
This commit is contained in:
parent
97f0ef435e
commit
51f489ddc5
6
main.go
6
main.go
@ -110,9 +110,11 @@ type UNR struct {
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println("Starting HTTP connection (Port 80)...")
|
||||
fmt.Println("Starting HTTP connection (Port 2018)...")
|
||||
fmt.Println("NOTICE: The SOAP Server runs under a port that doesn't work with WSC naturally.")
|
||||
fmt.Println("You can either use proxying from Nginx (recommended) or another web server software, or edit this script to use port 80.")
|
||||
http.HandleFunc("/", handler) // each request calls handler
|
||||
log.Fatal(http.ListenAndServe(":80", nil))
|
||||
log.Fatal(http.ListenAndServe(":2018", nil))
|
||||
}
|
||||
|
||||
func handler(w http.ResponseWriter, r *http.Request) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user