fix: config struct not exported

This commit is contained in:
wwqgtxx committed 2026-05-22 01:26:42 +08:00
1 parent 52edebd155
commit f69331f45f
1 file changed
+2 -2
+2 -2
View File
@@ -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"`
}