Don't try to auto-configure network interfaces with no link.
We already start watching for link state changes, so as soon as a link is established the configuration will be triggered.
This commit is contained in:
parent
1b3dd41a35
commit
274b8be6c4
@ -125,8 +125,12 @@ void
|
||||
AutoconfigLooper::_ReadyToRun()
|
||||
{
|
||||
start_watching_network(B_WATCH_NETWORK_LINK_CHANGES, this);
|
||||
_ConfigureIPv4();
|
||||
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6
|
||||
|
||||
BNetworkInterface interface(fDevice.String());
|
||||
if (interface.HasLink()) {
|
||||
_ConfigureIPv4();
|
||||
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user