Open meejah opened 8 years ago
Recent Tor versions have GETINFO config/defaults
(but, e.g. SOCKSPort isn't in there, but does get a default value). Might be a special-case for SOCKSPort?
Okay, so the answer is:
getinfo config/defaults
(but not individual ones)But I think the approach should be that TorConfig
queries config/defaults
as it starts up (i.e. after querying info/names
) and then it can provide the "actual" defaults somehow. But, we should probably still reveal (somehow) through the API that these are defaults and not that they're set in the config (and also be careful not to actually-set them with a .save()
later).
Can we provide the actual Tor defaults nicely to the user? For example, to avoid stuff like this: https://github.com/warner/foolscap/pull/27/files#diff-500ebcf8cf805a51e5a42da402338000R155