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:
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 {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user