diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-11-24 15:30:22 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-11-24 15:30:31 +0100 |
| commit | 6f9e67aca7ac761481388891d7262f035297ed43 (patch) | |
| tree | 9a4b4898e1d13bd30b127d0bf4bf2d168ad49ac2 /src/init.cpp | |
| parent | Merge pull request #5154 (diff) | |
| parent | Make -proxy set all network types, avoiding a connect leak. (diff) | |
| download | discoin-6f9e67aca7ac761481388891d7262f035297ed43.tar.xz discoin-6f9e67aca7ac761481388891d7262f035297ed43.zip | |
Merge pull request #5358
3c77714 Make -proxy set all network types, avoiding a connect leak. (Gregory Maxwell)
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index 2d2a05a93..d2d685861 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -854,10 +854,8 @@ bool AppInit2(boost::thread_group& threadGroup) if (!addrProxy.IsValid()) return InitError(strprintf(_("Invalid -proxy address: '%s'"), mapArgs["-proxy"])); - if (!IsLimited(NET_IPV4)) - SetProxy(NET_IPV4, addrProxy); - if (!IsLimited(NET_IPV6)) - SetProxy(NET_IPV6, addrProxy); + SetProxy(NET_IPV4, addrProxy); + SetProxy(NET_IPV6, addrProxy); SetNameProxy(addrProxy); fProxy = true; } |