mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-21 17:06:37 +08:00
优化添加端口、添加源站相关交互
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
Tea.context(function () {
|
||||
this.addr = ""
|
||||
this.protocol = ""
|
||||
|
||||
if (this.isHTTP) {
|
||||
this.protocol = "http"
|
||||
}
|
||||
|
||||
this.changeAddr = function () {
|
||||
if (this.serverType == "httpProxy") {
|
||||
if (this.addr.startsWith("http://")) {
|
||||
this.protocol = "http"
|
||||
} else if (this.addr.startsWith("https://")) {
|
||||
this.protocol = "https"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user