pex: add support for sending endpoint notification from the wg port via raw socket
[project/unetd.git] / cli.c
diff --git a/cli.c b/cli.c
index 43b58e3e2382ccbbdb34ce7254afa967dadc77dd..22b605a7b7abdd6c7d11fa4525faf3d478b4f821 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -158,7 +158,7 @@ pex_handle_update_request(struct sockaddr_in6 *addr, const uint8_t *id, void *da
        pex_msg_update_response_init(&ctx, empty_key, pubkey,
                                     peerpubkey, true, data, net_data, net_data_len);
        while (!done) {
-               __pex_msg_send(-1, NULL);
+               __pex_msg_send(-1, NULL, NULL, 0);
                done = !pex_msg_update_response_continue(&ctx);
        }
        sync_done = true;
@@ -287,7 +287,7 @@ static int cmd_sync(const char *endpoint, int argc, char **argv)
                return 1;
 
        req_id = req->req_id;
-       if (__pex_msg_send(-1, NULL) < 0) {
+       if (__pex_msg_send(-1, NULL, NULL, 0) < 0) {
                if (!quiet)
                        perror("send");
                return 1;