From 100c1e9c046daf65d91486a9e1fdc91631148e38 Mon Sep 17 00:00:00 2001 From: Anthony Rubick <68485672+AnthonyMichaelTDM@users.noreply.github.com> Date: Sun, 13 Jul 2025 16:22:49 -0700 Subject: [PATCH] fix: typo in dynamic_router.go SniffResultAccpet should be SniffResultAccept --- src/mod/plugins/zoraxy_plugin/dynamic_router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/plugins/zoraxy_plugin/dynamic_router.go b/src/mod/plugins/zoraxy_plugin/dynamic_router.go index 1dc53ce..22e56be 100644 --- a/src/mod/plugins/zoraxy_plugin/dynamic_router.go +++ b/src/mod/plugins/zoraxy_plugin/dynamic_router.go @@ -17,7 +17,7 @@ import ( type SniffResult int const ( - SniffResultAccpet SniffResult = iota // Forward the request to this plugin dynamic capture ingress + SniffResultAccept SniffResult = iota // Forward the request to this plugin dynamic capture ingress SniffResultSkip // Skip this plugin and let the next plugin handle the request ) @@ -62,7 +62,7 @@ func (p *PathRouter) RegisterDynamicSniffHandler(sniff_ingress string, mux *http payload.rawRequest = r sniffResult := handler(&payload) - if sniffResult == SniffResultAccpet { + if sniffResult == SniffResultAccept { w.WriteHeader(http.StatusOK) w.Write([]byte("OK")) } else {