mirror of
https://github.com/systemd/systemd.git
synced 2025-07-19 08:59:10 +03:00
networkd: do not drop config for unmanaged interfaces
Flushing foreign configuration for unmanaged interfaces is outright
evil, especially when it's a regular occurence with Wi-Fi.
Fixes: 3104883ddc
"networkd: remove route if carrier is lost"
Ref: #3831
This commit is contained in:
@ -2957,9 +2957,11 @@ static int link_carrier_lost(Link *link) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (link->state != LINK_STATE_UNMANAGED) {
|
||||
r = link_drop_foreign_config(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
r = link_handle_bound_by_list(link);
|
||||
if (r < 0)
|
||||
|
Reference in New Issue
Block a user