新增黑名单过滤

This commit is contained in:
2026-10-15 16:33:03 +08:00
parent a456686551
commit d552f3bc67
2 changed files with 3 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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 {