Skip to content

Commit 6f9e67a

Browse files
committed
Merge pull request #5358
3c77714 Make -proxy set all network types, avoiding a connect leak. (Gregory Maxwell)
2 parents 1ee685f + 3c77714 commit 6f9e67a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/init.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -854,10 +854,8 @@ bool AppInit2(boost::thread_group& threadGroup)
854854
if (!addrProxy.IsValid())
855855
return InitError(strprintf(_("Invalid -proxy address: '%s'"), mapArgs["-proxy"]));
856856

857-
if (!IsLimited(NET_IPV4))
858-
SetProxy(NET_IPV4, addrProxy);
859-
if (!IsLimited(NET_IPV6))
860-
SetProxy(NET_IPV6, addrProxy);
857+
SetProxy(NET_IPV4, addrProxy);
858+
SetProxy(NET_IPV6, addrProxy);
861859
SetNameProxy(addrProxy);
862860
fProxy = true;
863861
}

0 commit comments

Comments
 (0)