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
@@ -14,7 +14,7 @@ type Config struct {
Accounts map[string]string
Address v2net.Address
UDPEnabled bool
Timeout int
Timeout uint32
}
func (this *Config) HasAccount(username, password string) bool {
+1 -1
View File
@@ -23,7 +23,7 @@ func (this *Config) UnmarshalJSON(data []byte) error {
Accounts []*Account `json:"accounts"`
UDP bool `json:"udp"`
Host *v2net.AddressJson `json:"ip"`
Timeout int `json:"timeout"`
Timeout uint32 `json:"timeout"`
}
rawConfig := new(SocksConfig)