frps dashboard add stcp

This commit is contained in:
fatedier
2018-05-20 19:06:05 +08:00
parent e1918f6396
commit 6eb8146334
43 changed files with 5115 additions and 3248 deletions

View File

@@ -22,7 +22,7 @@ class TcpProxy extends BaseProxy {
super(proxyStats)
this.type = "tcp"
if (proxyStats.conf != null) {
this.addr = proxyStats.conf.bind_addr + ":" + proxyStats.conf.remote_port
this.addr = ":" + proxyStats.conf.remote_port
this.port = proxyStats.conf.remote_port
} else {
this.addr = ""
@@ -36,7 +36,7 @@ class UdpProxy extends BaseProxy {
super(proxyStats)
this.type = "udp"
if (proxyStats.conf != null) {
this.addr = proxyStats.conf.bind_addr + ":" + proxyStats.conf.remote_port
this.addr = ":" + proxyStats.conf.remote_port
this.port = proxyStats.conf.remote_port
} else {
this.addr = ""
@@ -87,4 +87,11 @@ class HttpsProxy extends BaseProxy {
}
}
export {BaseProxy, TcpProxy, UdpProxy, HttpProxy, HttpsProxy}
class StcpProxy extends BaseProxy {
constructor(proxyStats) {
super(proxyStats)
this.type = "stcp"
}
}
export {BaseProxy, TcpProxy, UdpProxy, HttpProxy, HttpsProxy, StcpProxy}