We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe9951 commit 22abec0Copy full SHA for 22abec0
src/misc/FindMixedProxies.js
@@ -1,4 +1,5 @@
1
import url from 'url';
2
+import { isIP } from './regexes.js';
3
4
const getProxyType = string => {
5
try {
@@ -29,7 +30,7 @@ const getProxyType = string => {
29
30
31
if (nextPort >= 0 && nextPort <= 65535) {
32
return {
- type: 'url',
33
+ type: isIP(second.hostname) ? 'v4' : 'url',
34
auth: `${log}:${pass}`,
35
host: second.hostname,
36
port: nextPort
@@ -40,7 +41,7 @@ const getProxyType = string => {
40
41
}
42
43
44
45
auth: second.auth ? second.auth : 'none',
46
47
port: Number(second.port)
0 commit comments