diff options
| author | Tara Rostami <132676256+TaraRostami@users.noreply.github.com> | 2024-04-20 21:45:36 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-20 21:45:36 +0300 |
| commit | db24d216210e0038f92e634de1ab8a46fbce4632 (patch) | |
| tree | 3648326a1e359543febd865747822bc6f8f72781 /web/assets/js | |
| parent | 3d5c06bf08f0ede7206e0ef39966d6be2106a225 (diff) | |
UI Improvements (#2228)
* UI Improvements
Better Table
Update QR Code Modal
Better Info Modal
Compression HTML files
Better Dropdown Menu
Better Calendar
and more ..
Remove files
Minor Fixes
Diffstat (limited to 'web/assets/js')
| -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, |
