mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 03:50:31 +01:00
core: don't assume the loopback interface is called "lo"
I did a "ip link set lo name yolo" and now my NetworkManager triggers an assertion failure. :( Nevertheless, the loopback interface is always ifindex=1.
This commit is contained in:
parent
ef295ddeef
commit
36f7669a4c
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,7 @@ main (int argc, char *argv[])
|
|||
* physical interfaces.
|
||||
*/
|
||||
nm_log_dbg (LOGD_CORE, "setting up local loopback");
|
||||
nm_platform_link_set_up (NM_PLATFORM_GET, nm_platform_link_get_ifindex (NM_PLATFORM_GET, "lo"));
|
||||
nm_platform_link_set_up (NM_PLATFORM_GET, 1);
|
||||
|
||||
success = TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue