diff options
author | GDR! <gdr@gdr.name> | 2016-10-12 13:45:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-12 13:45:51 +0200 |
commit | 91d3cf917678517623eee42acbb948cbe13e15ce (patch) | |
tree | 8bd1fc4fa46af4035c0254cd0ce7dfae1f2ef3f2 /main.h | |
parent | d194df598555e6ba31d53f5b1ec74f370b869c8c (diff) | |
parent | 315ee76599c2ebf92c9fed9b13ffad5ef50b849b (diff) |
Merge pull request #26 from bonfus/master
Limit allowed hostnames and ports
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -73,6 +73,13 @@ typedef struct protocol_frame_t { | |||
73 | uint8_t *data; | 73 | uint8_t *data; |
74 | } protocol_frame; | 74 | } protocol_frame; |
75 | 75 | ||
76 | /* Rules policy */ | ||
77 | enum rules_policy_enum { VALIDATE, NONE }; | ||
78 | typedef struct rule { | ||
79 | uint16_t port; | ||
80 | char * host; | ||
81 | struct rule *next; | ||
82 | } rule; | ||
76 | 83 | ||
77 | /**** GLOBAL VARIABLES ****/ | 84 | /**** GLOBAL VARIABLES ****/ |
78 | extern Tox *tox; | 85 | extern Tox *tox; |