/install/get_addresses -- made IP address omitempty

This commit is contained in:
Eugene Bujak 2019-02-01 18:59:42 +03:00
parent d3e81c47f6
commit f2b3c3a14c

View file

@ -695,7 +695,7 @@ func handleSafeSearchStatus(w http.ResponseWriter, r *http.Request) {
} }
type ipport struct { type ipport struct {
IP string `json:"ip"` IP string `json:"ip,omitempty"`
Port int `json:"port"` Port int `json:"port"`
Warning string `json:"warning"` Warning string `json:"warning"`
} }