Reject SOCKS requests for "localhost" or ".local"

Sending them on is futile, since we will be told "127.0.0.1" and then
think we've been lied to.  Partial fix for 2822.
This commit is contained in:
Nick Mathewson
2012-03-28 03:19:00 -04:00
parent 70c17134c7
commit 433d757846
4 changed files with 20 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
o Minor features:
- Don't bother trying to connect to addresses that we are sure will
resolve to 127.0.0.1: Getting 127.0.0.1 in a reply makes us think
we have been lied to, even when the address the client tried to
connect to was "localhost." Partial fix for bug 2822.