X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=6d7f03b877e0be11a69e81093c46b4bfa060616a;hb=af2e0c9a32642065aedd2e67ca1f5791ca7a407d;hp=93bb465ce874309061b67f905b4abcd4021bd8b1;hpb=5bc957074a35e58f49cbcf8d1fb5d6237d37363d;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 93bb465c..6d7f03b8 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -38,12 +38,6 @@ static bool show_help = false; /* If nonzero, print the version on standard output and exit. */ static bool show_version = false; -/* If nonzero, it will attempt to kill a running tincd and exit. */ -static int kill_tincd = 0; - -/* If nonzero, generate public/private keypair for this host/net. */ -static int generate_keys = 0; - static char *name = NULL; static char *identname = NULL; /* program name for syslog */ static char *controlcookiename = NULL; /* cookie file location */ @@ -535,8 +529,7 @@ int main(int argc, char *argv[], char *envp[]) { #endif if(connect(fd, res->ai_addr, res->ai_addrlen) < 0) { - - fprintf(stderr, "Cannot connect to %s: %s\n", controlcookiename, sockstrerror(sockerrno)); + fprintf(stderr, "Cannot connect to %s port %s: %s\n", host ?: "localhost", port, sockstrerror(sockerrno)); return 1; }