From d050978d3e979c43236c75fc410c71c02b29c1db Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Mon, 4 Jan 2016 21:16:39 +0100 Subject: [PATCH] only use sendto_port with reply to notify --- octoserve/ssdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octoserve/ssdp.c b/octoserve/ssdp.c index 82bdb56..0f459dc 100644 --- a/octoserve/ssdp.c +++ b/octoserve/ssdp.c @@ -266,8 +266,8 @@ static int send_reply_msearch(struct os_ssdp *ss, int mc, int send_id, int nr) insadr.sin_addr.s_addr = inet_addr("239.255.255.250"); res = sendto(s, buf, len, 0, (struct sockaddr *) &insadr, sizeof(insadr)); } else - //res = sendto(s, buf, len, 0, &ss->cadr, sizeof(struct sockaddr)); - res = sendto_port(s, buf, len, &ss->cadr, ss->csport); + res = sendto(s, buf, len, 0, &ss->cadr, sizeof(struct sockaddr)); + //res = sendto_port(s, buf, len, &ss->cadr, ss->csport); return res; }