Skip to content

Commit

Permalink
Update protocol2_discovery.c
Browse files Browse the repository at this point in the history
Added wireguard compability, as of

#103
  • Loading branch information
DL1GG authored May 21, 2023
1 parent 7999c18 commit 78e2434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol2_discovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 78e2434

Please sign in to comment.