diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-08-25 20:37:04 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-08-25 20:37:04 +0300 |
commit | d4f3cfe99a4c3ef3495a8f8848981f9b30cc8a34 (patch) | |
tree | f38c8af8720c9be4790466ed030e1ba8bb8867bb /src/core/or/channeltls.c | |
parent | cc4e42ee3257d5157172cedb73ed86ba88ca271d (diff) | |
parent | 75772ea096e030ecc79f67b1444cac42aaed7449 (diff) | |
download | tor-d4f3cfe99a4c3ef3495a8f8848981f9b30cc8a34.tar.gz tor-d4f3cfe99a4c3ef3495a8f8848981f9b30cc8a34.zip |
Merge branch 'mr/113'
Diffstat (limited to 'src/core/or/channeltls.c')
-rw-r--r-- | src/core/or/channeltls.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c index 51b772728e..a0debf8d22 100644 --- a/src/core/or/channeltls.c +++ b/src/core/or/channeltls.c @@ -1856,6 +1856,13 @@ channel_tls_process_netinfo_cell(cell_t *cell, channel_tls_t *chan) } } + if (me) { + /* We have a descriptor, so we are a relay: record the address that the + * other side said we had. */ + tor_addr_copy(&TLS_CHAN_TO_BASE(chan)->addr_according_to_peer, + &my_apparent_addr); + } + n_other_addrs = netinfo_cell_get_n_my_addrs(netinfo_cell); for (uint8_t i = 0; i < n_other_addrs; i++) { /* Consider all the other addresses; if any matches, this connection is |