|
|
@ -178,6 +178,7 @@ class FilterParserThread : public QThread { |
|
|
|
} |
|
|
|
} |
|
|
|
// Now Add to the filter
|
|
|
|
// Now Add to the filter
|
|
|
|
QStringList IP; |
|
|
|
QStringList IP; |
|
|
|
|
|
|
|
try { |
|
|
|
if(IPv4) { |
|
|
|
if(IPv4) { |
|
|
|
//IPv4 addresses
|
|
|
|
//IPv4 addresses
|
|
|
|
IP = strStartIP.split('.'); |
|
|
|
IP = strStartIP.split('.'); |
|
|
@ -195,6 +196,9 @@ class FilterParserThread : public QThread { |
|
|
|
// Apply to bittorrent session
|
|
|
|
// Apply to bittorrent session
|
|
|
|
filter.add_rule(start, last, ip_filter::blocked); |
|
|
|
filter.add_rule(start, last, ip_filter::blocked); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}catch(exception){ |
|
|
|
|
|
|
|
qDebug("Bad line in filter file, avoided crash..."); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
file.close(); |
|
|
|
file.close(); |
|
|
|
} |
|
|
|
} |
|
|
|