mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
fix address not applied
This commit is contained in:
parent
22f79b3303
commit
0250c6a4d7
@ -217,6 +217,7 @@ func (d *IPOrDomain) UnmarshalJSONPB(unmarshaler *jsonpb.Unmarshaler, bytes []by
|
||||
if err := json.Unmarshal(bytes, &ipOrDomain); err != nil {
|
||||
return err
|
||||
}
|
||||
d = NewIPOrDomain(ParseAddress(ipOrDomain))
|
||||
result := NewIPOrDomain(ParseAddress(ipOrDomain))
|
||||
d.Address = result.Address
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user