mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-05 11:28:32 +00:00
fix: config struct not exported
This commit is contained in:
1 parent
52edebd155
commit
f69331f45f
1 file changed
+2
-2
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user