summaryrefslogtreecommitdiff
path: root/client/Proxifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/Proxifier.cpp')
-rw-r--r--client/Proxifier.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/Proxifier.cpp b/client/Proxifier.cpp
index c8e7cf8..c3d9d6a 100644
--- a/client/Proxifier.cpp
+++ b/client/Proxifier.cpp
@@ -800,9 +800,13 @@ bool Proxifier::RemoveProxyFromChain(int proxyId, int chainId)
chainElem.removeChild(proxyElem);
break;
}
+ // proceed to the next chain proxy
+ proxyElem = proxyElem.nextSiblingElement("Proxy");
}
break;
}
+ // proceed to the next chain
+ chainElem = chainElem.nextSiblingElement("Chain");
}
// update state to reflect all the changes
ReadChainList(root);
@@ -977,6 +981,8 @@ bool Proxifier::SetRuleAction(string& name, string& action, int actId)
ruleElem.appendChild(newActionElem);
break;
}
+ // proceed to the next rule
+ ruleElem = ruleElem.nextSiblingElement("Rule");
}
// update state to reflect all the changes
ReadRuleList(root);
@@ -1036,6 +1042,8 @@ bool Proxifier::RemoveRule(string& name)
ruleListElem.removeChild(ruleElem);
break;
}
+ // proceed to the next rule
+ ruleElem = ruleElem.nextSiblingElement("Rule");
}
// update state to reflect all the changes
ReadRuleList(root);