Merge: * install: don't show an error about static IP if an interface is not selected

* commit '67bf027616df85911dca3caeef9b3d40d9e964ea':
  * install: don't show an error about static IP if an interface is not selected
This commit is contained in:
Simon Zolin 2020-09-02 16:07:08 +03:00
commit 729f4b1766

View File

@ -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)
}
}