diff options
author | Sadie Powell <sadie@witchery.services> | 2020-02-19 09:58:47 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-02-19 10:03:23 +0000 |
commit | 327bacd3687f307a5f8586856a94b16c9e4370bf (patch) | |
tree | 82eb9cb640d9120b0c64c3dfe029f34ab52a232c /src | |
parent | a3df29ba4902da2dd0e2dea1c8a9469ced629804 (diff) |
Lower <sts:duration> to 5m to prevent misconfigs denying access.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_ircv3_sts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ircv3_sts.cpp b/src/modules/m_ircv3_sts.cpp index 86ea159c1..4d2839062 100644 --- a/src/modules/m_ircv3_sts.cpp +++ b/src/modules/m_ircv3_sts.cpp @@ -171,7 +171,7 @@ class ModuleIRCv3STS : public Module if (!HasValidSSLPort(port)) throw ModuleException("<sts:port> must be a TLS port, at " + tag->getTagLocation()); - unsigned long duration = tag->getDuration("duration", 60*60*24*30*2); + unsigned long duration = tag->getDuration("duration", 5*60, 60); bool preload = tag->getBool("preload"); cap.SetPolicy(host, duration, port, preload); |