We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is easy to replicate, just create a wireguard interface and linhpsdr exits with the message:
discover: looking for HPSDR devices on wg0 discover: bound to wg0 discover: sendto socket failed for discovery_socket : Required key not available
The solution is to continue after ENOKEY errors, something like this:
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); } }
I think it is the easiest when you test it and edit your own source tree, so I don't need to push it somewhere.
The text was updated successfully, but these errors were encountered:
I should have tested to run it with that change... there is copy&paste code in protocol2_discovery.c that also needs to be fixed.
Sorry, something went wrong.
Update protocol1_discovery.c
7999c18
Added wireguard compability, as of g0orx#103
Update protocol2_discovery.c
78e2434
No branches or pull requests
It is easy to replicate, just create a wireguard interface and linhpsdr exits with the message:
The solution is to continue after ENOKEY errors, something like this:
I think it is the easiest when you test it and edit your own source tree, so I don't need to push it somewhere.
The text was updated successfully, but these errors were encountered: