Review fixes
This commit is contained in:
parent
5bf5cd43bd
commit
6be32445ba
3 changed files with 4 additions and 9 deletions
|
|
@ -155,7 +155,7 @@ bool KillSwitch::disableAllTraffic() {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool KillSwitch::allowTrafficTo(const QStringList &ranges) {
|
||||
bool KillSwitch::resetAllowedRange(const QStringList &ranges) {
|
||||
|
||||
m_allowedRanges = ranges;
|
||||
|
||||
|
|
@ -186,12 +186,7 @@ bool KillSwitch::addAllowedRange(const QStringList &ranges) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
WindowsFirewall::create(this)->allowTrafficRange(ranges);
|
||||
return true;
|
||||
#else
|
||||
return allowTrafficTo(m_allowedRanges);
|
||||
#endif
|
||||
return resetAllowedRange(m_allowedRanges);
|
||||
}
|
||||
|
||||
bool KillSwitch::enablePeerTraffic(const QJsonObject &configStr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue