mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 03:35:28 +00:00
Add back in helpful description for missing url_preview_ip_range_blacklist
This commit is contained in:
parent
d0633e6dbe
commit
bfe586843f
@ -88,7 +88,11 @@ class ContentRepositoryConfig(Config):
|
|||||||
config["url_preview_ip_range_blacklist"]
|
config["url_preview_ip_range_blacklist"]
|
||||||
)
|
)
|
||||||
else:
|
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:
|
if "url_preview_url_blacklist" in config:
|
||||||
self.url_preview_url_blacklist = config["url_preview_url_blacklist"]
|
self.url_preview_url_blacklist = config["url_preview_url_blacklist"]
|
||||||
|
Loading…
Reference in New Issue
Block a user