Make sure we dont use a multicast MAC for ethernet

This commit is contained in:
Tim Wilkinson 2023-01-05 22:31:57 -08:00 committed by GitHub
parent 988d5af69b
commit 0b9c8e62ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,7 @@ bool initEthernet()
// createSSLCert();
getMacAddr(mac); // FIXME use the BLE MAC for now...
mac[0] &= 0xfe; // Make sure this is not a multicast MAC
if (config.network.address_mode == Config_NetworkConfig_AddressMode_DHCP) {
LOG_INFO("starting Ethernet DHCP\n");