mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -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 {
|
||||
return err
|
||||
}
|
||||
t.Users = rawConfig.Users
|
||||
ip := net.ParseIP(rawConfig.Address)
|
||||
if ip == nil {
|
||||
log.Error("Unable to parse IP: %s", rawConfig.Address)
|
||||
|
Loading…
Reference in New Issue
Block a user