projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
subnet-up/down hooks
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
0c9f27c
..
3751537
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-462,6
+462,10
@@
bool setup_myself(void)
for(i = 0; i < 5; i++)
free(envp[i]);
for(i = 0; i < 5; i++)
free(envp[i]);
+ /* Run subnet-up scripts for our own subnets */
+
+ subnet_update(myself, NULL, true);
+
/* Open sockets */
get_config_string(lookup_config(config_tree, "BindToAddress"), &address);
/* Open sockets */
get_config_string(lookup_config(config_tree, "BindToAddress"), &address);
@@
-568,8
+572,10
@@
void close_network_connections(void)
terminate_connection(c, false);
}
terminate_connection(c, false);
}
- if(myself && myself->connection)
+ if(myself && myself->connection) {
+ subnet_update(myself, NULL, false);
terminate_connection(myself->connection, false);
terminate_connection(myself->connection, false);
+ }
for(i = 0; i < listen_sockets; i++) {
close(listen_socket[i].tcp);
for(i = 0; i < listen_sockets; i++) {
close(listen_socket[i].tcp);