Ensure subnet-up/down scripts are called after HUP when necessary.
This commit is contained in:
parent
32f5524c4b
commit
4708f2c89e
1 changed files with 4 additions and 0 deletions
|
@ -506,11 +506,15 @@ int main_loop(void) {
|
||||||
subnet = node->data;
|
subnet = node->data;
|
||||||
if(subnet->expires == 1) {
|
if(subnet->expires == 1) {
|
||||||
send_del_subnet(broadcast, subnet);
|
send_del_subnet(broadcast, subnet);
|
||||||
|
if(subnet->owner->status.reachable)
|
||||||
|
subnet_update(subnet->owner, subnet, false);
|
||||||
subnet_del(subnet->owner, subnet);
|
subnet_del(subnet->owner, subnet);
|
||||||
} else if(subnet->expires == -1) {
|
} else if(subnet->expires == -1) {
|
||||||
subnet->expires = 0;
|
subnet->expires = 0;
|
||||||
} else {
|
} else {
|
||||||
send_add_subnet(broadcast, subnet);
|
send_add_subnet(broadcast, subnet);
|
||||||
|
if(subnet->owner->status.reachable)
|
||||||
|
subnet_update(subnet->owner, subnet, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue