summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-16 11:43:18 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-16 11:43:18 +0000
commit0a6e27208b53089d7f171fd131b3eb6cb3fd0901 (patch)
treea76bb3bda12d7933ddcfe40a1c09e765e6ee6b26 /src/or/or.h
parentc90ff6f8b39b1f4dc95c5aac585291bdfbbb9d58 (diff)
downloadtor-0a6e27208b53089d7f171fd131b3eb6cb3fd0901.tar.gz
tor-0a6e27208b53089d7f171fd131b3eb6cb3fd0901.zip
o Handle servers with dynamic IP addresses: don't replace
options->Address with the resolved one at startup. o detect our address right before we make a routerinfo each time. o external IP vs bind-IP. Already done, just use options->Address. o OutboundBindAddress config option, to bind to a specific IP address for outgoing connect()s. svn:r2241
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index a382e9b32e..9d3fd976cb 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -838,12 +838,14 @@ typedef struct {
struct config_line_t *ExitPolicy; /**< Lists of exit policy components. */
struct config_line_t *SocksPolicy; /**< Lists of socks policy components */
+ /** Addresses to bind for listening for SOCKS connections. */
struct config_line_t *SocksBindAddress;
- /**< Addresses to bind for listening for SOCKS connections. */
+ /** Addresses to bind for listening for OR connections. */
struct config_line_t *ORBindAddress;
- /**< Addresses to bind for listening for OR connections. */
+ /** Addresses to bind for listening for directory connections. */
struct config_line_t *DirBindAddress;
- /**< Addresses to bind for listening for directory connections. */
+ /** Local address to bind outbound sockets */
+ char *OutboundBindAddress;
char *RecommendedVersions; /**< Directory server only: which versions of
* Tor should we tell users to run? */
char *User; /**< Name of user to run Tor as. */
@@ -1021,6 +1023,7 @@ struct config_line_t {
};
int config_assign_default_dirservers(void);
+int resolve_my_address(const char *address, uint32_t *addr);
int getconfig(int argc, char **argv, or_options_t *options);
int config_init_logs(or_options_t *options);
void config_parse_exit_policy(struct config_line_t *cfg,