1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 15:55:46 +00:00
This commit is contained in:
J. Nick Koston
2025-11-17 21:44:18 -06:00
parent 15be275541
commit 27a068e8b5

View File

@@ -74,12 +74,12 @@ def _final_validate(config: ConfigType) -> ConfigType:
# Register socket needs for DNS server and additional HTTP connections
# - 1 UDP socket for DNS server
# - 2 additional TCP sockets for captive portal detection probes + configuration requests
# - 3 additional TCP sockets for captive portal detection probes + configuration requests
# (OS captive portal detection makes multiple probe requests that stay in TIME_WAIT,
# need headroom for actual user configuration requests)
from esphome.components import socket
socket.consume_sockets(3, "captive_portal")(config)
socket.consume_sockets(4, "captive_portal")(config)
return config