diff options
author | Jacob Appelbaum <jacob@appelbaum.net> | 2008-12-07 01:21:19 +0000 |
---|---|---|
committer | Jacob Appelbaum <jacob@appelbaum.net> | 2008-12-07 01:21:19 +0000 |
commit | 6b178b46ef52fc146fee566e9bdd12929d3ad0a3 (patch) | |
tree | e1c1a8e6b340573a2395d29c2b37336855cefd46 /src/or/or.h | |
parent | 92562d6e7a57df315698fbdfb9476bcac24bc10e (diff) | |
download | tor-6b178b46ef52fc146fee566e9bdd12929d3ad0a3.tar.gz tor-6b178b46ef52fc146fee566e9bdd12929d3ad0a3.zip |
New DirPortFrontPage option that takes an html file and publishes it as "/" on the DirPort. Now relay operators can provide a disclaimer without needin to set up a separate webserver. There's a sample disclaimer in contrib/tor-exit-notice.html.
svn:r17500
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 254fb60b62..d7459033f5 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2402,6 +2402,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). */ + char *DirPortFrontPage; /**< This is a full path to a file with an html + disclaimer. This allows a server administrator to show + that they're running Tor and anyone visiting their server + will know this without any specialized knowledge. */ /** Boolean: if set, we start even if our resolv.conf file is missing * or broken. */ int ServerDNSAllowBrokenResolvConf; @@ -2805,6 +2809,7 @@ typedef enum setopt_err_t { SETOPT_ERR_SETTING = -4, } setopt_err_t; +const char *get_dirportfrontpage(void); or_options_t *get_options(void); int set_options(or_options_t *new_val, char **msg); void config_free_all(void); |