When checking if a connection comes from localhost, don't assume it's an IPv4
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 23 Jan 2005 14:31:08 +0000 (14:31 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 23 Jan 2005 14:31:08 +0000 (14:31 +0000)
commit19a4130c7173342d7a18b9ef32f23cf4f848c361
tree1045fd11456a7b197717f710914a6b0525b61926
parent64d6ff889bf429a2d6484a6b7a3f7bcb512fa021
When checking if a connection comes from localhost, don't assume it's an IPv4
connection.  Instead, correctly check IPv4 and IPv6 connections, assume that
AF_LOCAL is always local, and anything else is always remote.

This makes trivial local-to-remote forwarding work on my system.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5180 cda61777-01e9-0310-a592-d414129be87e
unix/uxnet.c