Skip to content

Commit

Permalink
fix: configuration cannot parse URL with leading spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x10240 committed Oct 22, 2024
1 parent 2f3b48a commit a5baa83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ProxyParsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { parseServerInfo, parseUrlParams, createTlsConfig, createTransportConfig

export class ProxyParser {
static parse(url) {
url = url.trim();
const type = url.split('://')[0];
switch(type) {
case 'ss': return new ShadowsocksParser().parse(url);
Expand Down

0 comments on commit a5baa83

Please sign in to comment.