Warn if we cannot reload the tincd when creating an invitation.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 27 Mar 2018 20:54:15 +0000 (22:54 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 27 Mar 2018 20:54:15 +0000 (22:54 +0200)
src/invitation.c

index 4a262a8..c059ca3 100644 (file)
@@ -414,8 +414,10 @@ int cmd_invite(int argc, char *argv[]) {
 
                fclose(f);
 
-               if(connect_tincd(false)) {
+               if(connect_tincd(true)) {
                        sendline(fd, "%d %d", CONTROL, REQ_RELOAD);
+               } else {
+                       fprintf(stderr, "Could not signal the tinc daemon. Please restart or reload it manually.\n");
                }
        } else {
                key = ecdsa_read_pem_private_key(f);