mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Locator fix
This commit is contained in:
parent
6db2b8c66d
commit
9b8d191bb1
1 changed files with 2 additions and 4 deletions
|
@ -147,6 +147,7 @@ func NewLocatorFromBytes(b []byte) (*Locator, error) {
|
||||||
loc.Virtual = append(loc.Virtual, id)
|
loc.Virtual = append(loc.Virtual, id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
loc.Bytes = b
|
||||||
|
|
||||||
return &loc, nil
|
return &loc, nil
|
||||||
}
|
}
|
||||||
|
@ -185,9 +186,6 @@ func (l *Locator) UnmarshalJSON(j []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
l.Identity = tmp.Identity
|
*l = *tmp
|
||||||
l.Physical = tmp.Physical
|
|
||||||
l.Virtual = tmp.Virtual
|
|
||||||
l.Bytes = bytes.Bytes
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue