fix tls in new inbound

This commit is contained in:
Alireza Ahmadi
2024-07-23 16:25:22 +02:00
parent 5cc3791f79
commit ea3ad15b76
+3 -1
View File
@@ -169,10 +169,12 @@ export default {
const prevConfig = { tag: tag ,listen: this.inbound.listen, listen_port: this.inbound.listen_port } const prevConfig = { tag: tag ,listen: this.inbound.listen, listen_port: this.inbound.listen_port }
this.inbound = createInbound(this.inbound.type, prevConfig) this.inbound = createInbound(this.inbound.type, prevConfig)
if (this.HasInData.includes(this.inbound.type)){ if (this.HasInData.includes(this.inbound.type)){
this.inData = <InData>{id: 0, tag: this.inbound.tag, addrs: [], outJson: {}} this.inData.outJson = {}
this.inData.tag = tag
} else { } else {
this.inData = <InData>{id: -1} this.inData = <InData>{id: -1}
} }
this.tls_id.value = 0
this.side = "s" this.side = "s"
}, },
add_addr() { add_addr() {