Enable the SPTPS protocol by default.
[oweals/tinc.git] / src / net_setup.c
index a9947aad1a9eca0205afc82b4b910db0657eb457..6b55521b600b78b6c7995f4ea21d4bd25cc900a3 100644 (file)
@@ -192,6 +192,8 @@ static bool read_ecdsa_private_key(void) {
 
        if(!fp) {
                logger(DEBUG_ALWAYS, LOG_ERR, "Error reading ECDSA private key file `%s': %s", fname, strerror(errno));
+               if(errno == ENOENT)
+                       logger(DEBUG_ALWAYS, LOG_INFO, "Create an ECDSA keypair with `tinc -n %s generate-ecdsa-keys'.", netname ?: ".");
                free(fname);
                return false;
        }