]> git.meshlink.io Git - meshlink/commit
Allow tunnelserver to work with clients that have other peers.
authorMichael Tokarev <mjt@tls.msk.ru>
Mon, 9 Feb 2009 22:51:10 +0000 (23:51 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 9 Feb 2009 22:51:10 +0000 (23:51 +0100)
commit2327d3f6eb5982bcc922ff1ab1ec436ba6aeffdc
tree44606c60cf31e5369b80f5d3824f3154621e062e
parent23730375f27c32e0fe1a59c7a761dd85296a7a4a
Allow tunnelserver to work with clients that have other peers.

In TunnelServer mode, tinc server disconnects any client if it announces
indirect subnets -- subnets that are not theirs (e.g. subnets for nodes
the CLIENT has connections now, even if those nodes are known to the server
too).  Fix that by ignoring such (indirect) announces instead.

While we're at it, move check for such indirect subnet registration to
before allocating new node structure, as in TunnelServer mode we don't
really need to know that other node.
src/protocol_subnet.c