diff options
Diffstat (limited to 'dhall/server/service/plugin/mkIPRestriction.dhall')
-rw-r--r-- | dhall/server/service/plugin/mkIPRestriction.dhall | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dhall/server/service/plugin/mkIPRestriction.dhall b/dhall/server/service/plugin/mkIPRestriction.dhall new file mode 100644 index 0000000..f803769 --- /dev/null +++ b/dhall/server/service/plugin/mkIPRestriction.dhall | |||
@@ -0,0 +1,11 @@ | |||
1 | let Plugin = ./Plugin.dhall | ||
2 | |||
3 | in let config = constructors ./Config.dhall | ||
4 | |||
5 | in λ(whiteList : Text) | ||
6 | → { name = | ||
7 | "ip-restriction" | ||
8 | , config = | ||
9 | config.IPRestriction { whitelist = whiteList } | ||
10 | } | ||
11 | : Plugin | ||