Fix zero users bug

pull/45/head
V2Ray 2015-10-16 14:15:28 +02:00
parent 5c7eb63bea
commit a81327c5b9
1 changed files with 1 additions and 0 deletions

View File

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