1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

Fix zero users bug

This commit is contained in:
V2Ray 2015-10-16 14:15:28 +02:00
parent 5c7eb63bea
commit a81327c5b9

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)