Skip to content

Commit

Permalink
make V2NetAddresses omitempty so it doesn't show up in responses for …
Browse files Browse the repository at this point in the history
…v1 hosts
  • Loading branch information
chris124567 authored and ChrisSchinnerl committed Nov 12, 2024
1 parent ad0179b commit 382188c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explorer/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ type HostScan struct {
type Host struct {
PublicKey types.PublicKey `json:"publicKey"`
NetAddress string `json:"netAddress"`
V2NetAddresses []chain.NetAddress `json:"netAddresses"`
V2NetAddresses []chain.NetAddress `json:"v2NetAddresses,omitempty"`

CountryCode string `json:"countryCode"`

Expand Down

0 comments on commit 382188c

Please sign in to comment.