Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#1699 closed defect (fixed)

GETINFO ip-tp-country results in 552

Reported by: qbi Owned by: nickm
Priority: Medium Milestone:
Component: Core Tor/Tor Version: Tor:
Severity: Keywords: control, ip-to-country
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


> telnet 9051
GETINFO ip-to-country/
552 Unrecognized key "ip-to-country/"
getinfo version
250-version= (git-3218a82991d890b0)

This example was copied control-spec, so it should not result in an error. (BTW: The version list has no version in it.)

Child Tickets

Change History (7)

comment:1 Changed 10 years ago by nickm

Is this with a loaded GeoIP file configured?

comment:2 Changed 10 years ago by qbi

Well, the config was OK, but someone removed the GeoIP-file. Sorry for the noise.

However I find the message a bit misleading. I thought the config key "ip-to-country" in general was not available to Tor. Maybe this could/should be changed in something like "5xy GeoIP database not found".

comment:3 Changed 10 years ago by nickm

Right now there's no easy way to return a specific error message from a GETINFO implementation function. I'd be glad for that to change, though.

Check out branch "bug1699" in my public git repo at ; does it look good?

comment:4 Changed 10 years ago by nickm

Owner: set to nickm
Status: newassigned

comment:5 Changed 10 years ago by qbi

Yep, this looks great. Thanks a lot, Nick.

comment:6 Changed 10 years ago by nickm

Resolution: fixed
Status: assignedclosed

Okay, merged. Thanks!

comment:7 Changed 8 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.