diff options
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -574,8 +574,11 @@ bool fastd_peer_verify_temporary(fastd_context_t *ctx, fastd_peer_t *peer, const if (!fastd_shell_command_isset(&ctx->conf->on_verify)) exit_bug(ctx, "tried to verify temporary peer without on-verify command"); + fastd_shell_command_t cmd = ctx->conf->on_verify; + cmd.sync = true; /* TODO: async not supported yet */ + int ret; - if (!fastd_shell_command_exec(ctx, &ctx->conf->on_verify, peer, local_addr, peer_addr, &ret)) + if (!fastd_shell_command_exec(ctx, &cmd, peer, local_addr, peer_addr, &ret)) return false; if (WIFSIGNALED(ret)) { |