diff options
author | Roger Dingledine <arma@torproject.org> | 2007-03-15 06:25:00 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-03-15 06:25:00 +0000 |
commit | ad304a5cbb43f38735384bfe1e52a0a4898d1cd2 (patch) | |
tree | 791bb377d2b4ad45f2965dba2e1c20f903e575f7 /src/or/connection_edge.c | |
parent | 8ca31c81954794e01cc6c644bf9e1b6f43d1cbc7 (diff) | |
download | tor-ad304a5cbb43f38735384bfe1e52a0a4898d1cd2.tar.gz tor-ad304a5cbb43f38735384bfe1e52a0a4898d1cd2.zip |
change my mind -- correct the spec to match the code's
behavior for getinfo addr-mappings/*. this is because
the code and spec have been mismatched since at least
0.1.1.x, so i would be surprised if nobody at all is
relying on the current behavior.
backport candidate.
backbackport candidate.
svn:r9823
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index c5c150c5f7..beb1caeea6 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1142,7 +1142,7 @@ address_is_invalid_destination(const char *address, int client) /** Iterate over all address mappings which have expiry times between * min_expires and max_expires, inclusive. If sl is provided, add an - * "old-addr=new-addr" string to sl for each mapping. If sl is NULL, + * "old-addr new-addr" string to sl for each mapping. If sl is NULL, * remove the mappings. */ void @@ -1168,7 +1168,7 @@ addressmap_get_mappings(smartlist_t *sl, time_t min_expires, } else if (val->new_address) { size_t len = strlen(key)+strlen(val->new_address)+2; char *line = tor_malloc(len); - tor_snprintf(line, len, "%s=%s", key, val->new_address); + tor_snprintf(line, len, "%s %s", key, val->new_address); smartlist_add(sl, line); } } |