mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 08:17:25 +00:00
try protobuf
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user