|
@@ -35,6 +35,7 @@ func (t *ConfigTarget) UnmarshalJSON(data []byte) error {
|
|
|
if err := json.Unmarshal(data, &rawConfig); err != nil {
|
|
if err := json.Unmarshal(data, &rawConfig); err != nil {
|
|
|
return err
|
|
return err
|
|
|
}
|
|
}
|
|
|
|
|
+ t.Users = rawConfig.Users
|
|
|
ip := net.ParseIP(rawConfig.Address)
|
|
ip := net.ParseIP(rawConfig.Address)
|
|
|
if ip == nil {
|
|
if ip == nil {
|
|
|
log.Error("Unable to parse IP: %s", rawConfig.Address)
|
|
log.Error("Unable to parse IP: %s", rawConfig.Address)
|