fix typo in shadowTLS #199
This commit is contained in:
@@ -114,22 +114,22 @@ export default {
|
|||||||
set(newValue: any) {
|
set(newValue: any) {
|
||||||
switch (newValue) {
|
switch (newValue) {
|
||||||
case 1:
|
case 1:
|
||||||
this.Inbound.password = undefined
|
delete this.Inbound.password
|
||||||
this.Inbound.users = undefined
|
delete this.Inbound.users
|
||||||
this.Inbound.handshake_for_server_name = undefined
|
delete this.Inbound.handshake_for_server_name
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (!this.Inbound.password) {
|
if (!this.Inbound.password) {
|
||||||
this.Inbound.password = ""
|
this.Inbound.password = ""
|
||||||
}
|
}
|
||||||
this.Inbound.users = undefined
|
delete this.Inbound.users
|
||||||
if (!this.Inbound.handshake_for_server_name) {
|
if (!this.Inbound.handshake_for_server_name) {
|
||||||
this.Inbound.handshake_for_server_name = {}
|
this.Inbound.handshake_for_server_name = {}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
this.Inbound.password = undefined
|
delete this.Inbound.password
|
||||||
if (Object.hasOwn(this.Inbound, 'users')) {
|
if (!Object.hasOwn(this.Inbound, 'users')) {
|
||||||
this.Inbound.users = []
|
this.Inbound.users = []
|
||||||
}
|
}
|
||||||
if (!this.Inbound.handshake_for_server_name) {
|
if (!this.Inbound.handshake_for_server_name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user