diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-06 12:46:17 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-06 12:46:17 +0000 |
commit | c054f90f029915679db24d61559a7bdde1a9414b (patch) | |
tree | e70cb32c0b0f96b47992c179dada5195dcaf62fd /src/or/or.h | |
parent | bbcf406d9fe0c5a51f76e0adb37bf854091246c5 (diff) | |
download | tor-c054f90f029915679db24d61559a7bdde1a9414b.tar tor-c054f90f029915679db24d61559a7bdde1a9414b.tar.gz |
New config option ServerDNSAllowBrokenResolvConf to start a relay
even when the local resolv.conf file is missing, broken, or contains
only unusable nameservers.
Now I can run a local network on my laptop when I'm on an airplane.
svn:r13402
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 9ec57784f..c2c4c0c56 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2291,6 +2291,10 @@ typedef struct { char *ServerDNSResolvConfFile; /**< If provided, we configure our internal * resolver from the file here rather than from * /etc/resolv.conf (Unix) or the registry (Windows). */ + /** Boolean: if set, we start even if our resolv.conf file is missing + * or broken. */ + int ServerDNSAllowBrokenResolvConf; + smartlist_t *ServerDNSTestAddresses; /**< A list of addresses that definitely * should be resolveable. Used for * testing our DNS server. */ |