Changeset 553

Show
Ignore:
Timestamp:
04/01/06 23:59:40 (3 years ago)
Author:
edmanm
Message:

Our default exit policy should be empty, so we don't mess with Tor's default
exit policy unless the user really, really wants to.

Location:
trunk/src/config
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/config/exitpolicy.cpp

    r447 r553  
    4747ExitPolicy::ExitPolicy(QString exitPolicy) 
    4848{ 
    49   QStringList policyList = exitPolicy.split(","); 
    50   foreach(QString policy, policyList) { 
    51     addPolicy(Policy(policy)); 
     49  if (!exitPolicy.isEmpty()) { 
     50    QStringList policyList = exitPolicy.split(","); 
     51    foreach(QString policy, policyList) { 
     52      addPolicy(Policy(policy)); 
     53    } 
    5254  } 
    5355} 
  • trunk/src/config/serversettings.cpp

    r549 r553  
    6363#define DEFAULT_SERVER_CONTACT    "<your@email.com>" 
    6464#define DEFAULT_SERVER_ADDRESS    net_local_address().toString()  
    65 #define DEFAULT_SERVER_EXITPOLICY (ExitPolicy().toString())  
     65#define DEFAULT_SERVER_EXITPOLICY ""  
    6666#define DEFAULT_SERVER_OVERRIDE   false 
    6767