From ddb4831f065b6e539d33051fb4c94711e06ed72f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 27 Feb 2013 04:42:50 +0100 Subject: 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. --- src/fastd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fastd.c') 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) { -- cgit v1.2.3