Merge pull request #2103 from kn6plv/fix-multicast-macaddress

Make sure we dont use a multicast MAC for ethernet
This commit is contained in:
Thomas Göttgens
2023-01-06 12:43:48 +01:00
committed by GitHub

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");