2022-12-05 10:12:53 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ShadowsocksServer struct {
|
|
|
|
Enable bool
|
|
|
|
Listen string
|
|
|
|
Password string
|
|
|
|
Cipher string
|
2023-03-21 12:40:36 +08:00
|
|
|
Udp bool
|
2022-12-05 10:12:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t ShadowsocksServer) String() string {
|
|
|
|
b, _ := json.Marshal(t)
|
|
|
|
return string(b)
|
|
|
|
}
|