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.

Files:
1 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}