handle right=%any case in strongSwan manager

This commit is contained in:
Andreas Steffen
2007-11-17 23:08:16 +00:00
parent b3b379e044
commit 3a19f38d15
3 changed files with 19 additions and 9 deletions
@@ -70,6 +70,10 @@ static void process_peerconfig(private_config_controller_t *this,
{
if (streq(name, "local") || streq(name, "remote"))
{
if (streq(value, "0.0.0.0") || streq(value, "::"))
{
value = "%any";
}
r->setf(r, "peercfgs.%s.ikecfg.%s=%s", config, name, value);
}
}