On Wed, 27 Nov 2002 19:45:32 +0200, Matti Aarnio wrote:
>   You might even consider "local" not only loopback, but any connection
>   where  getpeername()  and  getsockname()  returned addresses are
>   same (port-numbers will vary, of course.)

I'd be worried about doing this, because of the possibility of a stack which
sends such data out over the wire even though it's to itself.

On Wed, 27 Nov 2002 18:49:09 +0100, Simon Josefsson wrote:
> IMHO it depends on how you define "localhost", and how you determine
> if the connection is to "localhost" or not.  Looking up the address
> for the name "localhost" in DNS and checking if the address match the
> source address of incoming packets is a very poor idea, for instance.

I suspect that the only safe way is to wire in 127.x.x.x (for IP4) and do
whatever is the equivalent in IP6.

Reply via email to