aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-04-04 11:22:06 +0000
committerOmar Polo <op@omarpolo.com>2024-04-04 11:22:06 +0000
commitf53f5e5fe13af9ae5b55eda34635e61a5c11b538 (patch)
tree65bf8b9e6be9c66c4789fc368498fd2c25ff5640
parent40ea7b163e15d70788aa7a8189f9000109a7b931 (diff)
fix config dumping (-nn) handling
with the privsep rework the config dumping was unadvertitely broken, it prints the content of the key itself.
-rw-r--r--gmid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmid.c b/gmid.c
index bf1aedc..408b184 100644
--- a/gmid.c
+++ b/gmid.c
@@ -605,8 +605,8 @@ main_print_conf(struct conf *conf)
TAILQ_FOREACH(h, &conf->hosts, vhosts) {
printf("\nserver \"%s\" {\n", h->domain);
- printf(" cert \"%s\"\n", h->cert);
- printf(" key \"%s\"\n", h->key);
+ printf(" cert \"%s\"\n", h->cert_path);
+ printf(" key \"%s\"\n", h->key_path);
/* TODO: print locations... */
printf("}\n");
}