From ced027c57def4130c851ccd4244c68c9f9818e96 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 9 Jul 2017 12:15:30 +1200 Subject: [PATCH] serverOptions: add config options for banning (not yet implemented) --- ServerOptions.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ServerOptions.go b/ServerOptions.go index 2ea0a18..290365f 100644 --- a/ServerOptions.go +++ b/ServerOptions.go @@ -15,6 +15,7 @@ type ServerOptions struct { AllowDBDownload bool RecentChanges int GzipCompressionLevel int + BannedUserIPRegexes []string } func DefaultOptions() *ServerOptions { @@ -29,5 +30,6 @@ func DefaultOptions() *ServerOptions { AllowDBDownload: true, RecentChanges: 20, GzipCompressionLevel: 9, + BannedUserIPRegexes: make([]string, 0), } }