remote: use port macro for destination port
authorDavid Bauer <mail@david-bauer.net>
Wed, 8 Sep 2021 07:53:26 +0000 (09:53 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 21 Sep 2021 12:58:23 +0000 (14:58 +0200)
Signed-off-by: David Bauer <mail@david-bauer.net>
remote.c

index 16ecb0f1d477376365a1d1aa8925454462c7d426..eeb063214a32bd97daea731036ec5303325007fe 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -402,7 +402,7 @@ static void interface_send_msg(struct interface *iface, struct blob_attr *data)
        struct cmsghdr *cmsg;
 
        a.sin_family = AF_INET;
-       a.sin_port = htons(16720);
+       a.sin_port = htons(APMGR_PORT);
        a.sin_addr.s_addr = ~0;
 
        memset(cmsg_data, 0, sizeof(cmsg_data));