Skip to content

Commit

Permalink
Update init.cpp
Browse files Browse the repository at this point in the history
If you want compile daemon, delete this line -22-
If you want compile daemon, delete this line -816-820-
  • Loading branch information
7vpo committed Dec 26, 2014
1 parent 22f7906 commit e4d2f9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include <boost/algorithm/string/predicate.hpp>
#include <openssl/crypto.h>

//If you want compile daemon, delete this line -22-
#include <QSettings>
//If you want compile daemon, delete this line -22-

#ifndef WIN32
#include <signal.h>
Expand Down Expand Up @@ -810,13 +812,13 @@ bool AppInit2(boost::thread_group& threadGroup)
#endif
addrProxy = CService(inaddr_any, GetListenPort());
fBound |= Bind(addrProxy, !fBound ? BF_REPORT_ERROR : BF_NONE);

//If you want compile daemon, delete this line -816-820-
QSettings settings;
CService addrProxy(settings.value("addrProxy", "127.0.0.1:9050").toString().toStdString());

SetProxy(NET_IPV4, addrProxy, 4);
SetProxy(NET_IPV6, addrProxy, 4);

//If you want compile daemon, delete this line -816-820-
}
if (!fBound)
return InitError(_("Failed to listen on any port. Use -listen=0 if you want this."));
Expand Down

0 comments on commit e4d2f9b

Please sign in to comment.