This commit is contained in:
@@ -17,7 +17,7 @@ void listNetworkInterfaces() {
|
||||
}
|
||||
|
||||
void setEthernetAsDefault() {
|
||||
Log.verbose("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||
logger.log(0, DEBUG, "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||
listNetworkInterfaces();
|
||||
// Attempt to locate the Ethernet network interface.
|
||||
// (The name may vary—on some systems it might be "eth0")
|
||||
@@ -31,8 +31,8 @@ void setEthernetAsDefault() {
|
||||
struct netif *eth_netif2 = netif_find("ETH_DEF");
|
||||
if (netif) {
|
||||
netif_set_default(eth_netif2);
|
||||
Log.verbose("Ethernet set as default network interface.");
|
||||
logger.log(0, DEBUG, "Ethernet set as default network interface.");
|
||||
} else {
|
||||
Log.verbose("Could not find Ethernet netif.");
|
||||
logger.log(0, DEBUG, "Could not find Ethernet netif.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user