try protobuf

This commit is contained in:
Darien Raymond
2016-08-25 21:55:49 +02:00
parent 04d956462c
commit bbca180dba
20 changed files with 216 additions and 51 deletions
+1 -1
View File
@@ -9,5 +9,5 @@ type Config struct {
Address v2net.Address
Port v2net.Port
Network *v2net.NetworkList
Timeout int
Timeout uint32
}
+1 -1
View File
@@ -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)