Opened 6 years ago

Closed 6 years ago

#8200 closed defect (fixed)

Explicit IP Address in torrc produces stray (null) in controller event

Reported by: arma Owned by:
Priority: Medium Milestone: Tor: 0.2.4.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-relay
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

First, start your Tor with "address 18.244.0.1"

Second, do this on the control port:

$ telnet localhost 9051
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
authenticate
250 OK
setevents status_server
250 OK
getinfo address
650 STATUS_SERVER NOTICE EXTERNAL_ADDRESS ADDRESS=18.244.0.1 METHOD=CONFIGURED (null)
250-address=18.244.0.1
250 OK

That happens because the end of resolve_my_address() calls

     control_event_server_status(LOG_NOTICE,
                                 "EXTERNAL_ADDRESS ADDRESS=%s METHOD=%s %s%s",
                                 addr_string, method, h?"HOSTNAME=":"", h);

which says h even when h is NULL.

Child Tickets

Change History (3)

comment:1 Changed 6 years ago by arma

My bug2267b branch from #2267 includes a fix for this.

comment:2 Changed 6 years ago by arma

Status: newneeds_review

comment:3 Changed 6 years ago by arma

Resolution: fixed
Status: needs_reviewclosed

Fixed in the #2267 merge.

Note: See TracTickets for help on using tickets.