修复在 proxy 时重定向的问题

This commit is contained in:
ExplodingDragon
2025-05-15 20:25:12 +08:00
parent 70706fe969
commit b8cf863f18
5 changed files with 52 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ func NewServer() *VServer {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
zap.L().Debug("ServeHTTP", zap.String("url", r.URL.String()))
http.Error(w, "", http.StatusNotFound)
})
go func() {
_ = http.Serve(listener, mux)