diff options
Diffstat (limited to 'web/assets/js/model')
| -rw-r--r-- | web/assets/js/model/outbound.js | 12 | ||||
| -rw-r--r-- | web/assets/js/model/xray.js | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index c6fb6201..1cb1df21 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -690,12 +690,12 @@ class Outbound extends CommonClass { url.searchParams.get('quicSecurity') ?? 'none', url.searchParams.get('key') ?? '', headerType ?? 'none'); - } else if (type === 'grpc') { - stream.grpc = new GrpcStreamSettings( - url.searchParams.get('serviceName') ?? '', - url.searchParams.get('authority') ?? '', - url.searchParams.get('mode') == 'multi'); - } else if (type === 'httpupgrade') { + } else if (type === 'grpc') { + stream.grpc = new GrpcStreamSettings( + url.searchParams.get('serviceName') ?? '', + url.searchParams.get('authority') ?? '', + url.searchParams.get('mode') == 'multi'); + } else if (type === 'httpupgrade') { stream.httpupgrade = new HttpUpgradeStreamSettings(path,host); } diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 5040af04..7fffffd4 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -2472,7 +2472,7 @@ Inbound.WireguardSettings.Peer = class extends XrayCommonClass { if (a.length>0 && !a.includes('/')) this.allowedIPs[index] += '/32'; }); return { - privateKey: this.privateKey, + privateKey: this.privateKey, publicKey: this.publicKey, preSharedKey: this.psk.length>0 ? this.psk : undefined, allowedIPs: this.allowedIPs, |
