mihomo/listener/config/shadowsocks.go

22 lines
376 B
Go
Raw Permalink Normal View History

package config
import (
2023-11-23 08:20:26 +08:00
"github.com/metacubex/mihomo/listener/sing"
"encoding/json"
)
type ShadowsocksServer struct {
2023-11-23 08:20:26 +08:00
Enable bool
Listen string
Password string
Cipher string
Udp bool
MuxOption sing.MuxOption `yaml:"mux-option" json:"mux-option,omitempty"`
}
func (t ShadowsocksServer) String() string {
b, _ := json.Marshal(t)
return string(b)
}