fix typo in shadowTLS #199

This commit is contained in:
Alireza Ahmadi
2024-07-18 23:34:16 +02:00
parent 2b6874a58d
commit 39022c1b2d
@@ -114,22 +114,22 @@ export default {
set(newValue: any) {
switch (newValue) {
case 1:
this.Inbound.password = undefined
this.Inbound.users = undefined
this.Inbound.handshake_for_server_name = undefined
delete this.Inbound.password
delete this.Inbound.users
delete this.Inbound.handshake_for_server_name
break;
case 2:
if (!this.Inbound.password) {
this.Inbound.password = ""
}
this.Inbound.users = undefined
delete this.Inbound.users
if (!this.Inbound.handshake_for_server_name) {
this.Inbound.handshake_for_server_name = {}
}
break;
case 3:
this.Inbound.password = undefined
if (Object.hasOwn(this.Inbound, 'users')) {
delete this.Inbound.password
if (!Object.hasOwn(this.Inbound, 'users')) {
this.Inbound.users = []
}
if (!this.Inbound.handshake_for_server_name) {