实现源站端口跟随功能

This commit is contained in:
GoEdgeLab
2022-06-29 21:56:44 +08:00
parent b16ffe38ae
commit e493e72f1c
16 changed files with 215 additions and 120 deletions

View File

@@ -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 () {