Skip to content

Clarify removing MAPADDRESS entries

Hi, our MAPADDRESS spec seem to have a very minor issue with its example...

If the original address and the destination address are the same, the server removes any mapping in place for the original address.

Example:

C: MAPADDRESS 0.0.0.0=torproject.org 1.2.3.4=tor.freehaven.net
S: 250-127.192.10.10=torproject.org
S: 250 1.2.3.4=tor.freehaven.net

I'm unsure why this presents 'MAPADDRESS 0.0.0.0=hostname'. I tried that and it doesn't remove the entry. However, 'MAPADDRESS address=address' does...

atagar@morrigan:~/Desktop/stem$ telnet localhost 9051
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
AUTHENTICATE
250 OK
MAPADDRESS 1.2.3.4=torproject.org
250 1.2.3.4=torproject.org
GETINFO address-mappings/control
250-address-mappings/control=1.2.3.4 torproject.org NEVER
250 OK
MAPADDRESS 1.2.3.4=1.2.3.4
250 1.2.3.4=1.2.3.4
GETINFO address-mappings/control
250-address-mappings/control=
250 OK
QUIT
250 closing connection
Connection closed by foreign host.

I would using the above to exemplify entry removal instead.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information