From f2b3c3a14c37914cd677425480ccf1e4072af4db Mon Sep 17 00:00:00 2001
From: Eugene Bujak <hmage@hmage.net>
Date: Fri, 1 Feb 2019 18:59:42 +0300
Subject: [PATCH] /install/get_addresses -- made IP address omitempty

---
 control.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/control.go b/control.go
index 0c8bd487..38464a90 100644
--- a/control.go
+++ b/control.go
@@ -695,7 +695,7 @@ func handleSafeSearchStatus(w http.ResponseWriter, r *http.Request) {
 }
 
 type ipport struct {
-	IP      string `json:"ip"`
+	IP      string `json:"ip,omitempty"`
 	Port    int    `json:"port"`
 	Warning string `json:"warning"`
 }