From 382188cbc43a56a9ed534be0be2859b94207fda7 Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Tue, 12 Nov 2024 10:38:12 -0500 Subject: [PATCH] make V2NetAddresses omitempty so it doesn't show up in responses for v1 hosts --- explorer/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/types.go b/explorer/types.go index 0b0e04f4..6085e11e 100644 --- a/explorer/types.go +++ b/explorer/types.go @@ -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"`