From 7999c1880d98dee3c03702fbe6dcd906cabbdbe7 Mon Sep 17 00:00:00 2001 From: DL1GG <134225109+DL1GG@users.noreply.github.com> Date: Sun, 21 May 2023 17:30:13 +0000 Subject: [PATCH 1/2] Update protocol1_discovery.c Added wireguard compability, as of https://github.com/g0orx/linhpsdr/issues/103 --- protocol1_discovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol1_discovery.c b/protocol1_discovery.c index 7d833c7..43bf53e 100644 --- a/protocol1_discovery.c +++ b/protocol1_discovery.c @@ -117,7 +117,7 @@ static void discover(struct ifaddrs* iface) { if(sendto(discovery_socket,buffer,63,0,(struct sockaddr*)&to_addr,sizeof(to_addr))<0) { perror("discover: sendto socket failed for discovery_socket\n"); - if(errno!=EHOSTUNREACH && errno!=EADDRNOTAVAIL) { + if(errno!=EHOSTUNREACH && errno!=EADDRNOTAVAIL && errno!=ENOKEY) { exit(-1); } } From 78e2434a930d100a14ac152ffb5e1a13684a1bf3 Mon Sep 17 00:00:00 2001 From: DL1GG <134225109+DL1GG@users.noreply.github.com> Date: Sun, 21 May 2023 17:32:20 +0000 Subject: [PATCH 2/2] Update protocol2_discovery.c Added wireguard compability, as of https://github.com/g0orx/linhpsdr/issues/103 --- protocol2_discovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol2_discovery.c b/protocol2_discovery.c index 17cfe9c..46b8dfd 100644 --- a/protocol2_discovery.c +++ b/protocol2_discovery.c @@ -168,7 +168,7 @@ void protocol2_discover(struct ifaddrs* iface) { if(sendto(discovery_socket,buffer,60,0,(struct sockaddr*)&to_addr,sizeof(to_addr))<0) { perror("protocol2_discover: sendto socket failed for discovery_socket\n"); - if(errno!=EHOSTUNREACH) { + if(errno!=EHOSTUNREACH && errno!=ENOKEY) { exit(-1); } }