Skip to content

Commit

Permalink
馃悰 Fix v2 proxy server check
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed May 26, 2023
1 parent 35614c1 commit 6de9ef1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/options/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ function main() {
Url = new URL(url);
} catch {}
if (!Url) return [false, `'${url}' is not a valid URL`];
if (Url.protocol.endsWith(".ttvlolpro.perfprod.com:"))
if (
Url.protocol.endsWith(".ttvlolpro.perfprod.com:") ||
Url.hostname.endsWith(".ttvlolpro.perfprod.com")
)
return [false, `'${url}' is a proxy server for TTV LOL PRO v2`];
if (Url.protocol !== "https:")
return [false, `'${url}' is not a valid HTTPS URL`];
Expand Down

0 comments on commit 6de9ef1

Please sign in to comment.