summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.h
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-10-24 12:19:42 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-10-30 10:48:56 -0400
commit82b3a023024755971003f53950d9b6dfbe90f969 (patch)
treed320bef90253a7d0397e589ee519cb5a527468a8 /src/feature/hs/hs_service.h
parent3a05b5acdc4a40eae6016ab94067bf5dde92e5fe (diff)
downloadtor-82b3a023024755971003f53950d9b6dfbe90f969.tar.gz
tor-82b3a023024755971003f53950d9b6dfbe90f969.zip
Detect the onion service version and then check for invalid options unless we have set HiddenServiceVersion
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r--src/feature/hs/hs_service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h
index 6fb15b9d37..cc0006f1dc 100644
--- a/src/feature/hs/hs_service.h
+++ b/src/feature/hs/hs_service.h
@@ -178,6 +178,9 @@ typedef struct hs_service_config_t {
* option. */
uint32_t version;
+ /* Have we explicitly set HiddenServiceVersion? */
+ unsigned int hs_version_explicitly_set : 1;
+
/* List of rend_service_port_config_t */
smartlist_t *ports;