github.com/metacubex/mihomo@v1.18.5/listener/config/shadowsocks.go (about) 1 package config 2 3 import ( 4 "github.com/metacubex/mihomo/listener/sing" 5 6 "encoding/json" 7 ) 8 9 type ShadowsocksServer struct { 10 Enable bool 11 Listen string 12 Password string 13 Cipher string 14 Udp bool 15 MuxOption sing.MuxOption `yaml:"mux-option" json:"mux-option,omitempty"` 16 } 17 18 func (t ShadowsocksServer) String() string { 19 b, _ := json.Marshal(t) 20 return string(b) 21 }