Skip to content

Commit

Permalink
feat(subscribe): do urldecode for vmess label
Browse files Browse the repository at this point in the history
  • Loading branch information
1715173329 authored Dec 13, 2023
1 parent 56aaa4f commit 330ce5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions root/etc/homeproxy/scripts/update_subscriptions.uc
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function parse_uri(uri) {
params = url.searchParams || {};

if (!sing_features.with_quic) {
log(sprintf('Skipping unsupported %s node: %s.', 'tuic', urldecode(url.hash) || url.hostname));
log(sprintf('Skipping unsupported %s node: %s.', 'TUIC', urldecode(url.hash) || url.hostname));
log(sprintf('Please rebuild sing-box with %s support!', 'QUIC'));

return null;
Expand Down Expand Up @@ -338,7 +338,7 @@ function parse_uri(uri) {
break;
case 'http':
case 'tcp':
if (config.transport === 'http' || params.headerType === 'http') {
if (params.type === 'http' || params.headerType === 'http') {
config.http_host = params.host ? split(urldecode(params.host), ',') : null;
config.http_path = params.path ? urldecode(params.path) : null;
}
Expand Down Expand Up @@ -394,7 +394,7 @@ function parse_uri(uri) {
*/

config = {
label: uri.ps,
label: uri.ps ? urldecode(uri.ps) : null,
type: 'vmess',
address: uri.add,
port: uri.port,
Expand Down

0 comments on commit 330ce5e

Please sign in to comment.