summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-11-01 15:42:28 +0100
committerGitHub <noreply@github.com>2016-11-01 15:42:28 +0100
commit79619b61417ac456f82432f767dfd50eb80b6b01 (patch)
tree005f9e1f58ba6ec0fef6cfffeb45f4252c69b4d0 /include
parent80f10dc783b75aa6fa2a3fe490a6e94b2a78e467 (diff)
parent02575ecbbbd7311f7e16ed9f2f3a1c5809deefa8 (diff)
Merge pull request #1236 from SaberUK/master+port
Allow classes to take a port range.
Diffstat (limited to 'include')
-rw-r--r--include/users.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index ae76d2eb3..fc31a8297 100644
--- a/include/users.h
+++ b/include/users.h
@@ -135,6 +135,11 @@ struct CoreExport ConnectClass : public refcountbase
*/
bool resolvehostnames;
+ /**
+ * If non-empty the server ports which this user has to be using
+ */
+ insp::flat_set<int> ports;
+
/** Create a new connect class with no settings.
*/
ConnectClass(ConfigTag* tag, char type, const std::string& mask);