From 18d9e7950e38d67e10ddc2e8cd3d707f76505174 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 18 Jun 2018 10:26:33 +0100 Subject: [PATCH] Set default rate limited to true --- .../matrix-org/dendrite/common/config/appservice.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/common/config/appservice.go b/src/github.com/matrix-org/dendrite/common/config/appservice.go index e8c6bba8e..86bc92c10 100644 --- a/src/github.com/matrix-org/dendrite/common/config/appservice.go +++ b/src/github.com/matrix-org/dendrite/common/config/appservice.go @@ -70,8 +70,10 @@ type ApplicationService struct { // and loads their data into the config object for later access. func loadAppservices(config *Dendrite) error { for _, configPath := range config.ApplicationServices.ConfigFiles { - // Create a new application service - var appservice ApplicationService + // Create a new application service with default options + appservice := ApplicationService{ + RateLimited: true, + } // Create an absolute path from a potentially relative path absPath, err := filepath.Abs(configPath)