use getsockname() to find out the local address of a connection before
authorreyk <reyk@openbsd.org>
Wed, 16 Jul 2008 14:49:44 +0000 (14:49 +0000)
committerreyk <reyk@openbsd.org>
Wed, 16 Jul 2008 14:49:44 +0000 (14:49 +0000)
commitc086f8ec4d97998bf8a7d5558dabebd98100061a
tree0c505ef1bc50788a1221b408926962a6f5f0c269
parent64d7140c5e81454f2282b11f73906bf3c15d4ae5
use getsockname() to find out the local address of a connection before
doing a nat lookup.  this fixes nat lookups when the relay is
listening to a wildcard IPv4/IPv6 address (like 0.0.0.0 or ::).
usr.sbin/relayd/relay.c