Skip to content
  • Nick Mathewson's avatar
    Add client code to detect attempts to connect to 127.0.0.1 etc · 411ec3c0
    Nick Mathewson authored
    We detect and reject said attempts if there is no chosen exit node or
    circuit: connecting to a private addr via a randomly chosen exit node
    will usually fail (if all exits reject private addresses), is always
    ill-defined (you're not asking for any particular host or service),
    and usually an error (you've configured all requests to go over Tor
    when you really wanted to configure all _remote_ requests to go over
    Tor).
    
    This can also help detect forwarding loop requests.
    
    Found as part of bug2279.
    411ec3c0