Revert "net_server: Add (more) missing devices even if one has already been found."

This reverts commit def61273ed.

This isn't a fix for the issue, it will just throw away all settings.

Change-Id: I2979c02c54f9379f25dc5d41d3a6085c09e87ac3
Reviewed-on: https://review.haiku-os.org/785
Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
Axel Dörfler
2018-12-19 12:35:15 +00:00
parent 3256001041
commit 339eef5131
+5 -3
View File
@@ -769,9 +769,11 @@ NetServer::_BringUpInterfaces()
// TODO: also check if the networking driver is correctly initialized!
// (and check for other devices to take over its configuration)
// if a missing device has been found, add it to /dev/net
_ConfigureDevices("/dev/net",
missingDevice.HasString("device") ? &missingDevice : NULL);
if (!_TestForInterface("/dev/net/")) {
// there is no driver configured - see if there is one and try to use it
_ConfigureDevices("/dev/net",
missingDevice.HasString("device") ? &missingDevice : NULL);
}
}