]> git.meshlink.io Git - meshlink/blobdiff - src/net.c
When trying to talk to a host that is in the netmask of a tinc server but
[meshlink] / src / net.c
index ceda90b837ecd5e1b2651a235fa49d844acbf3c1..8b340c2b254ca9bf77d0b910da8cea5bdd00ad31 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -306,7 +306,7 @@ cp
     {
       add_queue(&(cl->sq), packet, packet->len + 2);
       if(!cl->status.waitingforkey)
-       send_key_request(to);
+       send_key_request(cl->vpn_ip);                   /* Keys should be sent to the host running the tincd */
       return 0;
     }