mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-12 11:52:33 +00:00
18 lines
236 B
Go
18 lines
236 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
)
|
||
|
|
||
|
type ShadowsocksServer struct {
|
||
|
Enable bool
|
||
|
Listen string
|
||
|
Password string
|
||
|
Cipher string
|
||
|
}
|
||
|
|
||
|
func (t ShadowsocksServer) String() string {
|
||
|
b, _ := json.Marshal(t)
|
||
|
return string(b)
|
||
|
}
|