mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 14:23:04 +01:00
If Tor is invoked from something that isn't a shell (e.g. Vidalia),
now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman. svn:r10351
This commit is contained in:
parent
1c3f864024
commit
c8fd65a936
2 changed files with 8 additions and 0 deletions
|
@ -112,6 +112,8 @@ Changes in version 0.2.0.1-alpha - 2007-??-??
|
|||
allows DNSPort to work sensibly with hidden service users. By
|
||||
default, .exit and .onion addresses are remapped; the list of
|
||||
patterns can be reconfigured with AutomapHostsSuffixes.
|
||||
- If Tor is invoked from something that isn't a shell (e.g. Vidalia),
|
||||
now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
|
||||
|
||||
o Removed features:
|
||||
- Removed support for the old binary "version 0" controller protocol.
|
||||
|
|
|
@ -3184,7 +3184,13 @@ options_init_from_torrc(int argc, char **argv)
|
|||
log(LOG_WARN, LD_CONFIG, "Duplicate -f options on command line.");
|
||||
tor_free(fname);
|
||||
}
|
||||
#ifdef MS_WINDOWS
|
||||
/* XXX one day we might want to extend expand_filename to work
|
||||
* under Windows as well. */
|
||||
fname = tor_strdup(argv[i+1]);
|
||||
#else
|
||||
fname = expand_filename(argv[i+1]);
|
||||
#endif
|
||||
using_default_torrc = 0;
|
||||
++i;
|
||||
} else if (!strcmp(argv[i],"--ignore-missing-torrc")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue