Improve message on spurious SOCKSListenAddress

This commit is contained in:
Nick Mathewson 2012-07-17 12:02:55 -04:00
parent 21c6c84853
commit 4cac5df554
2 changed files with 4 additions and 1 deletions

3
changes/port_doc Normal file
View File

@ -0,0 +1,3 @@
o Minor features (usability):
- Try to make the warning when giving an obsolete SOCKSListenAddress
a littel more useful.

View File

@ -5642,7 +5642,7 @@ parse_port_config(smartlist_t *out,
mainport = (int)tor_parse_long(ports->value, 10, 0, 65535, &ok, NULL);
if (!ok) {
log_warn(LD_CONFIG, "%sListenAddress can only be used with a single "
"%sPort with value \"auto\" or 1-65535.",
"%sPort with value \"auto\" or 1-65535 and no options set.",
portname, portname);
return -1;
}