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] })