Jelajahi Sumber

Add back in helpful description for missing url_preview_ip_range_blacklist

Erik Johnston 8 tahun lalu
induk
melakukan
bfe586843f
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      synapse/config/repository.py

+ 5 - 1
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"]