mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
fix typo, add log message
svn:r8357
This commit is contained in:
parent
3fcbdd3e01
commit
5f6351ceb3
@ -1796,7 +1796,7 @@ get_interface_address(uint32_t *addr)
|
||||
|
||||
if (connect(sock,(struct sockaddr *)&target_addr,sizeof(target_addr))<0) {
|
||||
int e = tor_socket_errno(sock);
|
||||
log_warn(LD_NET, "connnect() failed: %s", tor_socket_strerror(e));
|
||||
log_warn(LD_NET, "connect() failed: %s", tor_socket_strerror(e));
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
@ -978,6 +978,8 @@ router_new_address_suggestion(const char *suggestion)
|
||||
}
|
||||
addr = ntohl(in.s_addr);
|
||||
|
||||
log_debug(LD_DIR, "Got X-Your-Address-Is: %s.", suggestion);
|
||||
|
||||
if (resolve_my_address(LOG_INFO, get_options(), &cur, NULL) >= 0) {
|
||||
/* We're all set -- we already know our address. Great. */
|
||||
last_guessed_ip = cur; /* store it in case we need it later */
|
||||
|
Loading…
Reference in New Issue
Block a user