mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Regularize JSON stuff
This commit is contained in:
parent
b9911d0db7
commit
c3e0f262d1
13 changed files with 164 additions and 114 deletions
|
@ -49,7 +49,7 @@ func (a Address) String() string {
|
|||
|
||||
// MarshalJSON marshals this Address as a string
|
||||
func (a Address) MarshalJSON() ([]byte, error) {
|
||||
return []byte("\"" + a.String() + "\""), nil
|
||||
return []byte(fmt.Sprintf("\"%.10x\"", uint64(a))), nil
|
||||
}
|
||||
|
||||
// UnmarshalJSON unmarshals this Address from a string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue