Skip to content

Commit cfe9951

Browse files
author
assnctr
committed
Remove unused
1 parent d2b95f6 commit cfe9951

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/core/checker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default class Checker {
9696
return null;
9797
}
9898

99-
getAgent({ type, auth, host, port }, protocol) {
99+
getAgent({ auth, host, port }, protocol) {
100100
if (auth !== 'none') {
101101
if (protocol === 'socks4' || protocol === 'socks5') {
102102
const agent = new SocksProxyAgent(`${protocol}://${auth}@${host}:${port}`);

src/misc/regexes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
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'));
21
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'));
32
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'));
43

0 commit comments

Comments
 (0)