添加源站的时候也提示8443和8080对应的协议

This commit is contained in:
GoEdgeLab
2022-10-07 09:01:22 +08:00
parent 58c95964ea
commit b602491ade
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,8 @@ Tea.context(function () {
if (this.protocol == "http") { if (this.protocol == "http") {
if (this.addr.endsWith(":443")) { if (this.addr.endsWith(":443")) {
this.addrError = "443通常是HTTPS协议端口请确认源站协议选择是否正确。" this.addrError = "443通常是HTTPS协议端口请确认源站协议选择是否正确。"
} else if (this.addr.endsWith(":8443")) {
this.addrError = "8443通常是HTTPS协议端口请确认源站协议选择是否正确。"
} }
} }
@@ -44,6 +46,8 @@ Tea.context(function () {
if (this.protocol == "https") { if (this.protocol == "https") {
if (this.addr.endsWith(":80")) { if (this.addr.endsWith(":80")) {
this.addrError = "80通常是HTTP协议端口请确认源站协议选择是否正确。" this.addrError = "80通常是HTTP协议端口请确认源站协议选择是否正确。"
} else if (this.addr.endsWith(":8080")) {
this.addrError = "8080通常是HTTP协议端口请确认源站协议选择是否正确。"
} }
} }
} }

View File

@@ -35,6 +35,8 @@ Tea.context(function () {
if (this.protocol == "http") { if (this.protocol == "http") {
if (this.addr.endsWith(":443")) { if (this.addr.endsWith(":443")) {
this.addrError = "443通常是HTTPS协议端口请确认源站协议选择是否正确。" this.addrError = "443通常是HTTPS协议端口请确认源站协议选择是否正确。"
} else if (this.addr.endsWith(":8443")) {
this.addrError = "8443通常是HTTPS协议端口请确认源站协议选择是否正确。"
} }
} }
@@ -42,6 +44,8 @@ Tea.context(function () {
if (this.protocol == "https") { if (this.protocol == "https") {
if (this.addr.endsWith(":80")) { if (this.addr.endsWith(":80")) {
this.addrError = "80通常是HTTP协议端口请确认源站协议选择是否正确。" this.addrError = "80通常是HTTP协议端口请确认源站协议选择是否正确。"
} else if (this.addr.endsWith(":8080")) {
this.addrError = "8080通常是HTTP协议端口请确认源站协议选择是否正确。"
} }
} }
} }