mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-02 00:19:24 +00:00
try protobuf
This commit is contained in:
@@ -9,5 +9,5 @@ type Config struct {
|
||||
Address v2net.Address
|
||||
Port v2net.Port
|
||||
Network *v2net.NetworkList
|
||||
Timeout int
|
||||
Timeout uint32
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
||||
Host *v2net.AddressJson `json:"address"`
|
||||
PortValue v2net.Port `json:"port"`
|
||||
NetworkList *v2net.NetworkList `json:"network"`
|
||||
TimeoutValue int `json:"timeout"`
|
||||
TimeoutValue uint32 `json:"timeout"`
|
||||
Redirect bool `json:"followRedirect"`
|
||||
}
|
||||
rawConfig := new(DokodemoConfig)
|
||||
|
||||
Reference in New Issue
Block a user