Removed Surge vmess encrypt-method (#116)

This commit is contained in:
Hsiaoyi Hsu 2022-06-18 10:15:02 +08:00 committed by GitHub
parent 467c03c9d3
commit 340e3746fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -107,11 +107,11 @@ function vmess(proxy) {
result.append(`${proxy.name}=${proxy.type},${proxy.server},${proxy.port}`); result.append(`${proxy.name}=${proxy.type},${proxy.server},${proxy.port}`);
result.appendIfPresent(`,username=${proxy.uuid}`, 'uuid'); result.appendIfPresent(`,username=${proxy.uuid}`, 'uuid');
if (proxy.cipher === 'auto') { // if (proxy.cipher === 'auto') {
result.append(`,encrypt-method=none`); // result.append(`,encrypt-method=none`);
} else { // } else {
result.append(`,encrypt-method=${proxy.cipher}`); // result.append(`,encrypt-method=${proxy.cipher}`);
} // }
if (isPresent(proxy, 'network')) { if (isPresent(proxy, 'network')) {
if (proxy.network === 'ws') { if (proxy.network === 'ws') {

File diff suppressed because one or more lines are too long