diff options
author | Martin Willi <martin@strongswan.org> | 2009-05-11 13:33:55 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-05-11 13:33:55 +0200 |
commit | 496064ba4574315ece364d4894771ded5befdfc9 (patch) | |
tree | e7041ba0c511fc53b966788411a67290a6b01bf8 /src | |
parent | 30fc989c9cefe937c00c8673bad0f72ab4cbe302 (diff) | |
download | strongswan-496064ba4574315ece364d4894771ded5befdfc9.tar.bz2 strongswan-496064ba4574315ece364d4894771ded5befdfc9.tar.xz |
hand out a IPv4 virtual address if %any6 is requested
Diffstat (limited to 'src')
-rw-r--r-- | src/charon/plugins/stroke/stroke_attribute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charon/plugins/stroke/stroke_attribute.c b/src/charon/plugins/stroke/stroke_attribute.c index 33fbcc719..8be4ffde8 100644 --- a/src/charon/plugins/stroke/stroke_attribute.c +++ b/src/charon/plugins/stroke/stroke_attribute.c @@ -206,8 +206,9 @@ static host_t* acquire_address(private_stroke_attribute_t *this, this->mutex->unlock(this->mutex); return requested->clone(requested); } - - if (requested->get_family(requested) != + + if (!requested->is_anyaddr(requested) && + requested->get_family(requested) != pool->base->get_family(pool->base)) { DBG1(DBG_CFG, "IP pool address family mismatch"); |