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