Skip to content

Commit

Permalink
Fix result type
Browse files Browse the repository at this point in the history
  • Loading branch information
assnctr committed Sep 17, 2022
1 parent cfe9951 commit 22abec0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/misc/FindMixedProxies.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import url from 'url';
import { isIP } from './regexes.js';

const getProxyType = string => {
try {
Expand Down Expand Up @@ -29,7 +30,7 @@ const getProxyType = string => {

if (nextPort >= 0 && nextPort <= 65535) {
return {
type: 'url',
type: isIP(second.hostname) ? 'v4' : 'url',
auth: `${log}:${pass}`,
host: second.hostname,
port: nextPort
Expand All @@ -40,7 +41,7 @@ const getProxyType = string => {
}

return {
type: 'url',
type: isIP(second.hostname) ? 'v4' : 'url',
auth: second.auth ? second.auth : 'none',
host: second.hostname,
port: Number(second.port)
Expand Down

0 comments on commit 22abec0

Please sign in to comment.