diff --git a/src/core/checker.js b/src/core/checker.js index d7eb773..77f5b32 100644 --- a/src/core/checker.js +++ b/src/core/checker.js @@ -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}`); diff --git a/src/misc/regexes.js b/src/misc/regexes.js index 49fabb1..d7100e3 100644 --- a/src/misc/regexes.js +++ b/src/misc/regexes.js @@ -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'));