Skip to content

Commit

Permalink
fix typo in shadowTLS #199
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Jul 18, 2024
1 parent 2b6874a commit 39022c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/components/protocols/ShadowTls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 39022c1

Please sign in to comment.