mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-05 00:47:51 -05:00
Fix zero users bug
This commit is contained in:
parent
5c7eb63bea
commit
a81327c5b9
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user