From d552f3bc6753a808150868fc878ae91338c34f85 Mon Sep 17 00:00:00 2001 From: luorijun Date: Thu, 15 Oct 2026 16:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=BB=91=E5=90=8D=E5=8D=95?= =?UTF-8?q?=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/globals/gost.go | 1 + web/services/channel_gost.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/globals/gost.go b/web/globals/gost.go index 5a5724e..4b213e1 100644 --- a/web/globals/gost.go +++ b/web/globals/gost.go @@ -90,6 +90,7 @@ type GostServiceConfig struct { Listener GostListenerConfig `json:"listener"` Recorders []GostRecorderConfig `json:"recorders,omitempty"` Limiter string `json:"limiter,omitempty"` + Bypasses []string `json:"bypasses,omitempty"` } type GostHandlerConfig struct { diff --git a/web/services/channel_gost.go b/web/services/channel_gost.go index f083f99..9815075 100644 --- a/web/services/channel_gost.go +++ b/web/services/channel_gost.go @@ -54,7 +54,8 @@ func (s *channelGostProvider) prepareCreate(ctx *channelCreateContext) (*channel Recorders: []g.GostRecorderConfig{ {Name: "record-http-otel", Record: "recorder.service.handler"}, }, - Limiter: "limiter-8m", + Limiter: "limiter-8m", + Bypasses: []string{"china", "deny"}, } if ctx.AuthWhitelist {