Fixed calculation of start and end dhcp range (#4785)

This commit is contained in:
Jimmy Hedman 2023-05-10 03:03:43 +02:00 committed by GitHub
parent a8b821c213
commit b19c7d462b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -706,6 +706,7 @@ bool WiFiComponent::wifi_ap_ip_config_(optional<ManualIP> manual_ip) {
#endif
struct dhcps_lease lease {};
lease.enable = true;
network::IPAddress start_address = info.ip.addr;
start_address[3] += 99;
lease.start_ip.addr = static_cast<uint32_t>(start_address);