protobuf for dokodemo config

This commit is contained in:
Darien Raymond committed 2016-09-22 16:49:20 +02:00
1 parent 88ae8248a5
commit 60f4292882
7 files changed
+128 -21

No files matched your search

+3 -3
View File
@@ -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