Skip to content

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
assnctr committed Sep 17, 2022
1 parent d2b95f6 commit cfe9951
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class Checker {
return null;
}

getAgent({ type, auth, host, port }, protocol) {
getAgent({ auth, host, port }, protocol) {
if (auth !== 'none') {
if (protocol === 'socks4' || protocol === 'socks5') {
const agent = new SocksProxyAgent(`${protocol}://${auth}@${host}:${port}`);
Expand Down
1 change: 0 additions & 1 deletion src/misc/regexes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const findProxies = str => str.match(new RegExp('[1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[:][1-9]?[0-9]{1,5}', 'g'));
export const findIPs = str => str.match(new RegExp('[1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}(?!/)', 'g'));
export const findIPsWithRanges = str => str.match(new RegExp('[1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[.][1-2]?[0-9]{1,3}[/][1-2]?[0-9]{2}', 'g'));

Expand Down

0 comments on commit cfe9951

Please sign in to comment.