mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 18:55:40 +03:00
network: set scope and protocol for default route
This commit is contained in:
parent
750f919112
commit
c697db75de
@ -877,6 +877,9 @@ int network_add_default_route_on_device(Network *network) {
|
||||
return r;
|
||||
|
||||
n->family = AF_INET;
|
||||
n->scope = RT_SCOPE_LINK;
|
||||
n->scope_set = true;
|
||||
n->protocol = RTPROT_STATIC;
|
||||
|
||||
TAKE_PTR(n);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user