This commit is contained in:
2022-02-23 11:05:30 +08:00
parent bb8a233a40
commit 4f841f8807
4 changed files with 75 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ func proxy(w http.ResponseWriter, r *http.Request, client *http.Client, pathname
func main() {
http.HandleFunc("/", fetchHandler)
err := http.ListenAndServe(fmt.Sprintf(":%d", 8091), nil)
err := http.ListenAndServe(fmt.Sprintf(":%d", 80), nil)
if err != nil {
fmt.Println("run server error: ", err)
return