Skip to content

Commit

Permalink
Merge pull request #49 from 0x10240/main
Browse files Browse the repository at this point in the history
fix: configuration cannot parse URL with leading spaces.
  • Loading branch information
7Sageer authored Oct 22, 2024
2 parents 2f3b48a + a5baa83 commit 6cf66c4
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 6cf66c4

Please sign in to comment.