1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fix address not applied

This commit is contained in:
Shelikhoo 2021-09-05 00:45:01 +01:00
parent 22f79b3303
commit 0250c6a4d7
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -217,6 +217,7 @@ func (d *IPOrDomain) UnmarshalJSONPB(unmarshaler *jsonpb.Unmarshaler, bytes []by
if err := json.Unmarshal(bytes, &ipOrDomain); err != nil { if err := json.Unmarshal(bytes, &ipOrDomain); err != nil {
return err return err
} }
d = NewIPOrDomain(ParseAddress(ipOrDomain)) result := NewIPOrDomain(ParseAddress(ipOrDomain))
d.Address = result.Address
return nil return nil
} }