summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-27 04:42:50 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-27 04:42:50 +0100
commitddb4831f065b6e539d33051fb4c94711e06ed72f (patch)
tree8c2e74da542cce596f68c4fcdfd0f3462e1a513e /src/fastd.c
parent3fb7af313fbfef9e0b8195cc44b176dd3fccb15e (diff)
downloadfastd-ddb4831f065b6e539d33051fb4c94711e06ed72f.tar
fastd-ddb4831f065b6e539d33051fb4c94711e06ed72f.zip
Don't set the peer address for temporary peers before the session is actually established
Doing so could lead to duplicate address entries in different peers, causing very strange behaviour. Add additional parameters for the local and the peer address to fastd_shell_exec() to allow the on-verify script to use this information nevertheless.
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 89125a9..5b0316f 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -567,14 +567,14 @@ static inline void on_up(fastd_context_t *ctx) {
if (!ctx->conf->on_up)
return;
- fastd_shell_exec(ctx, NULL, ctx->conf->on_up, ctx->conf->on_up_dir, NULL);
+ fastd_shell_exec(ctx, ctx->conf->on_up, ctx->conf->on_up_dir, NULL, NULL, NULL, NULL);
}
static inline void on_down(fastd_context_t *ctx) {
if (!ctx->conf->on_down)
return;
- fastd_shell_exec(ctx, NULL, ctx->conf->on_down, ctx->conf->on_down_dir, NULL);
+ fastd_shell_exec(ctx, ctx->conf->on_down, ctx->conf->on_down_dir, NULL, NULL, NULL, NULL);
}
static fastd_peer_group_t* init_peer_group(const fastd_peer_group_config_t *config, fastd_peer_group_t *parent) {