From f69331f45f82ffe8cde0e919a4031baefc704a33 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Fri, 22 May 2026 01:26:42 +0800 Subject: [PATCH] fix: config struct not exported --- listener/inbound/snell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/listener/inbound/snell.go b/listener/inbound/snell.go index 58af8ebc..4ec95cdd 100644 --- a/listener/inbound/snell.go +++ b/listener/inbound/snell.go @@ -14,14 +14,14 @@ type SnellOption struct { Psk string `inbound:"psk"` Version int `inbound:"version,omitempty"` UDP bool `inbound:"udp,omitempty"` - ObfsOpts snellObfsOption `inbound:"obfs-opts,omitempty"` + ObfsOpts SnellObfsOption `inbound:"obfs-opts,omitempty"` } func (o SnellOption) Equal(config C.InboundConfig) bool { return optionToString(o) == optionToString(config) } -type snellObfsOption struct { +type SnellObfsOption struct { Mode string `obfs:"mode,omitempty"` Host string `obfs:"host,omitempty"` }