fix: also report that there is a network config if a static-web-listener is specified
This commit is contained in:
1 parent
203a56fa11
commit
1fab98286b
1 file changed
+5
-1
@@ -225,7 +225,11 @@ func HasNetworkConfig(appName string) bool {
|
|||||||
ipfile := fmt.Sprintf("%v/IP.web.1", appRoot)
|
ipfile := fmt.Sprintf("%v/IP.web.1", appRoot)
|
||||||
portfile := fmt.Sprintf("%v/PORT.web.1", appRoot)
|
portfile := fmt.Sprintf("%v/PORT.web.1", appRoot)
|
||||||
|
|
||||||
return common.FileExists(ipfile) && common.FileExists(portfile)
|
if common.FileExists(ipfile) && common.FileExists(portfile) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return reportStaticWebListener(appName) != ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// ClearNetworkConfig removes old IP and PORT files for a newly cloned app
|
// ClearNetworkConfig removes old IP and PORT files for a newly cloned app
|
||||||
|
|||||||
Reference in new issue
Block a user