mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-29 13:35:20 -05:00
protobuf for dokodemo config
This commit is contained in:
@@ -23,10 +23,10 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
||||
return errors.New("Dokodemo: Failed to parse config: " + err.Error())
|
||||
}
|
||||
if rawConfig.Host != nil {
|
||||
this.Address = rawConfig.Host.AsAddress()
|
||||
this.Address = rawConfig.Host
|
||||
}
|
||||
this.Port = rawConfig.PortValue
|
||||
this.Network = rawConfig.NetworkList
|
||||
this.Port = uint32(rawConfig.PortValue)
|
||||
this.NetworkList = rawConfig.NetworkList
|
||||
this.Timeout = rawConfig.TimeoutValue
|
||||
this.FollowRedirect = rawConfig.Redirect
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user