summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-02 15:05:10 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-13 10:41:18 -0400
commit5fec8fe559b1a1f4bcb55c8f2c1f048f5abee3de (patch)
tree05687be34c2f683bf80127a14ae0caeed48a61e0 /src/or/or.h
parente0d5a6e1849673589c5b7f04d89e25194167344d (diff)
downloadtor-5fec8fe559b1a1f4bcb55c8f2c1f048f5abee3de.tar.gz
tor-5fec8fe559b1a1f4bcb55c8f2c1f048f5abee3de.zip
"(Socks|Control|etc)Port auto" now tells Tor to open an arbitrary port
This is the major part of the implementation for trac issue 3076.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index d667358eb0..0a089f774e 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2353,6 +2353,10 @@ typedef struct config_line_t {
typedef struct routerset_t routerset_t;
+/** A magic value for the (Socks|OR|...)Port options below, telling Tor
+ * to pick its own port. */
+#define CFG_AUTO_PORT 0xc4005e
+
/** Configuration options for a Tor process. */
typedef struct {
uint32_t _magic;