summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-13 13:52:57 +0100
committerErik Johnston <erik@matrix.org>2016-04-13 13:52:57 +0100
commitbfe586843f5c9277a34b146ba5b7c6794d428807 (patch)
treec3c3dc953ef7aa51e98be0d7395918fed3e0f969 /synapse/config
parentSanitize the optional dependencies for spider API (diff)
downloadsynapse-bfe586843f5c9277a34b146ba5b7c6794d428807.tar.xz
Add back in helpful description for missing url_preview_ip_range_blacklist
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/repository.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/config/repository.py b/synapse/config/repository.py
index 82ff8df59c..656eb7ba6c 100644
--- a/synapse/config/repository.py
+++ b/synapse/config/repository.py
@@ -88,7 +88,11 @@ class ContentRepositoryConfig(Config):
                     config["url_preview_ip_range_blacklist"]
                 )
             else:
-                raise ConfigError("url_preview_url_blacklist is required")
+                raise ConfigError(
+                    "For security, you must specify an explicit target IP address "
+                    "blacklist in url_preview_ip_range_blacklist for url previewing "
+                    "to work"
+                )
 
             if "url_preview_url_blacklist" in config:
                 self.url_preview_url_blacklist = config["url_preview_url_blacklist"]