mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-22 09:10:25 +08:00
实现源站端口跟随功能
This commit is contained in:
@@ -4,8 +4,14 @@ Tea.context(function () {
|
||||
|
||||
this.addrError = ""
|
||||
|
||||
// 当前服务协议
|
||||
this.isHTTP = (this.serverType == "httpProxy" || this.serverType == "httpWeb")
|
||||
if (this.serverType == "httpProxy") {
|
||||
this.protocol = "http"
|
||||
} else if (this.serverType == "tcpProxy") {
|
||||
this.protocol = "tcp"
|
||||
} else if (this.serverType == "udpProxy") {
|
||||
this.protocol = "udp"
|
||||
}
|
||||
|
||||
this.changeProtocol = function () {
|
||||
|
||||
Reference in New Issue
Block a user