mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +08:00
22 lines
376 B
Go
22 lines
376 B
Go
package config
|
|
|
|
import (
|
|
"github.com/metacubex/mihomo/listener/sing"
|
|
|
|
"encoding/json"
|
|
)
|
|
|
|
type ShadowsocksServer struct {
|
|
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)
|
|
}
|