From b820eb8e241dee2b851cf8211e60ed2db5fc37eb Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 7 Jun 2023 10:55:12 +0800 Subject: [PATCH] fixed --- src/views/remote.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/remote.vue b/src/views/remote.vue index c798616..acf7117 100644 --- a/src/views/remote.vue +++ b/src/views/remote.vue @@ -76,14 +76,25 @@ export default { 'skip-cert-verify': true }) break + + case 'vless': + Object.assign(info, { + password: tmp2.searchParams.get('pbk'), + sni: tmp2.searchParams.get('sni'), + 'skip-cert-verify': true, + udp: false + }) + break } names.push(`"${info.name}"`) txt += ` - { name: ${info.name}, type: ${info.type}, server: ${ info.server - }, port: ${info.port}, password: ${info.password}, udp: true, ${ - info.type === 'ss' ? 'cipher' : 'sni' - }: ${info.type === 'ss' ? info.cipher : info.sni}}\n` + }, port: ${info.port}, password: ${info.password}, udp: ${ + info.udp + }, ${info.type === 'ss' ? 'cipher' : 'sni'}: ${ + info.type === 'ss' ? info.cipher : info.sni + }}\n` return [info.name, info.type] })