chiark / gitweb /
site: Force use of configured name only if we are mobile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 2 Jun 2014 16:45:52 +0000 (17:45 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 2 Jun 2014 16:51:06 +0000 (17:51 +0100)
commit7d8d39dc3418b0e709b76f08eb08ab7668239207
treedd74faa1ee0f747ccd3f6aa8453da5a40e49cb37
parent4b4308136a7fd26e5250fcbb6ea7e0c661632655
site: Force use of configured name only if we are mobile

In c22c3541 we arranged to honour our local configured name for the
peer even if the peer initiated the key setup.  Previously we used the
address on the incoming packets.

However, this change can break some half-broken configurations, which
would otherwise mostly work.  Some of these configurations may even be
deliberate, as a kind of poor version of the mobile site feature.

But, if we are a mobile site it is very unlikely that we have a broken
name or address (or at least, if we do, that things would work well).

So, for now, restrict this new behaviour to the situation where we are
mobile.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
site.c