Skip to content

Commit

Permalink
Hotfix IPv4 proxies not working in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Jan 29, 2024
1 parent 4f3cb8e commit 51f7e4a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ttv-lol-pro",
"version": "2.3.1",
"version": "2.3.2",
"description": "TTV LOL PRO removes most livestream ads from Twitch.",
"@parcel/bundler-default": {
"minBundles": 10000000,
Expand Down
5 changes: 4 additions & 1 deletion src/common/ts/proxyInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ export function getUrlFromProxyInfo(proxyInfo: ProxyInfo): string {
} else if (username) {
url = `${username}@`;
}
if (ip.isV6Format(host)) {
const isIPv4 = ip.isV4Format(host);
const isIPv6 = ip.isV6Format(host);
// isV6Format() returns true for IPv4 addresses, so we need to exclude those.
if (isIPv6 && !isIPv4) {
url += `[${host}]`;
} else {
url += host;
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.chromium.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "TTV LOL PRO",
"description": "TTV LOL PRO removes most livestream ads from Twitch.",
"homepage_url": "https://github.com/younesaassila/ttv-lol-pro",
"version": "2.3.1",
"version": "2.3.2",
"background": {
"service_worker": "background/background.ts",
"type": "module"
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "TTV LOL PRO",
"description": "TTV LOL PRO removes most livestream ads from Twitch.",
"homepage_url": "https://github.com/younesaassila/ttv-lol-pro",
"version": "2.3.1",
"version": "2.3.2",
"background": {
"scripts": ["background/background.ts"],
"persistent": false
Expand Down

0 comments on commit 51f7e4a

Please sign in to comment.