mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-28 06:40:33 +08:00
添加源站的时候也提示8443和8080对应的协议
This commit is contained in:
@@ -37,6 +37,8 @@ Tea.context(function () {
|
||||
if (this.protocol == "http") {
|
||||
if (this.addr.endsWith(":443")) {
|
||||
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.addr.endsWith(":80")) {
|
||||
this.addrError = "80通常是HTTP协议端口,请确认源站协议选择是否正确。"
|
||||
} else if (this.addr.endsWith(":8080")) {
|
||||
this.addrError = "8080通常是HTTP协议端口,请确认源站协议选择是否正确。"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@ Tea.context(function () {
|
||||
if (this.protocol == "http") {
|
||||
if (this.addr.endsWith(":443")) {
|
||||
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.addr.endsWith(":80")) {
|
||||
this.addrError = "80通常是HTTP协议端口,请确认源站协议选择是否正确。"
|
||||
} else if (this.addr.endsWith(":8080")) {
|
||||
this.addrError = "8080通常是HTTP协议端口,请确认源站协议选择是否正确。"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user