You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From version 0.4.8 and on I can't anonymize URLs like http://proxy:proxy321@my.domain.com, http://proxy:proxy321@my.domain.com:80 due to a change on /src/tools.js:parseUrl. This is happening because new URL(...) omit the default protocol port causing the anonymizeProxy(...) to throw an error Invalid "proxyUrl" option: the URL must contain both hostname and port..
> new URL('http://proxy:proxy321@my.domain.com:80')
URL {
href: 'http://proxy:proxy321@my.domain.com/',
origin: 'http://my.domain.com',
protocol: 'http:',
username: 'proxy',
password: 'proxy321',
host: 'my.domain.com',
hostname: 'my.domain.com',
port: '', // Empty port event when it is present
pathname: '/',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
A possible fix here would be set the default http port on anonymizeProxy when parsedProxyUrl.protocol === 'http:' and port is empty. Thoughts?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi,
From version 0.4.8 and on I can't anonymize URLs like
http://proxy:proxy321@my.domain.com
,http://proxy:proxy321@my.domain.com:80
due to a change on/src/tools.js:parseUrl
. This is happening becausenew URL(...)
omit the default protocol port causing theanonymizeProxy(...)
to throw an errorInvalid "proxyUrl" option: the URL must contain both hostname and port.
.A possible fix here would be set the default http port on
anonymizeProxy
whenparsedProxyUrl.protocol === 'http:'
and port is empty. Thoughts?Thank you.
The text was updated successfully, but these errors were encountered: