mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
tweaks
This commit is contained in:
@@ -339,6 +339,7 @@ async def to_code(config):
|
||||
cg.add_define("USE_WEBSERVER_GZIP")
|
||||
|
||||
# Extract domains from CDN URLs for DNS whitelisting (used by captive_portal)
|
||||
# This handles both default URLs (using CDN_HOST) and custom user URLs
|
||||
cdn_domains: set[str] = set()
|
||||
for url_key in (CONF_CSS_URL, CONF_JS_URL):
|
||||
url = config.get(url_key, "")
|
||||
|
||||
Reference in New Issue
Block a user