2022-12-05 10:12:53 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
2023-11-23 08:20:26 +08:00
|
|
|
"github.com/metacubex/mihomo/listener/sing"
|
|
|
|
|
2022-12-05 10:12:53 +08:00
|
|
|
"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"`
|
2022-12-05 10:12:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t ShadowsocksServer) String() string {
|
|
|
|
b, _ := json.Marshal(t)
|
|
|
|
return string(b)
|
|
|
|
}
|