From 67bf027616df85911dca3caeef9b3d40d9e964ea Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Wed, 2 Sep 2020 15:50:09 +0300 Subject: [PATCH] * install: don't show an error about static IP if an interface is not selected --- home/control_install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/control_install.go b/home/control_install.go index 864ad96b..ba66f8f4 100644 --- a/home/control_install.go +++ b/home/control_install.go @@ -134,7 +134,7 @@ func (web *Web) handleInstallCheckConfig(w http.ResponseWriter, r *http.Request) if err != nil { respData.DNS.Status = fmt.Sprintf("%v", err) - } else { + } else if reqData.DNS.IP != "0.0.0.0" { respData.StaticIP = handleStaticIP(reqData.DNS.IP, reqData.SetStaticIP) } }