summaryrefslogtreecommitdiff
path: root/sbin/unwind/printconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/unwind/printconf.c')
-rw-r--r--sbin/unwind/printconf.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sbin/unwind/printconf.c b/sbin/unwind/printconf.c
index 6f8fe1bddcd..5f544fd8e4f 100644
--- a/sbin/unwind/printconf.c
+++ b/sbin/unwind/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.4 2019/01/29 19:32:36 florian Exp $ */
+/* $OpenBSD: printconf.c,v 1.5 2019/02/03 12:02:30 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -77,4 +77,17 @@ print_config(struct unwind_conf *conf)
}
printf("}\n");
}
+
+ if (conf->captive_portal_host != NULL) {
+ printf("captive portal {\n");
+ printf("\turl \"http://%s%s\"\n",
+ conf->captive_portal_host, conf->captive_portal_path);
+ printf("\texpected status %d\n",
+ conf->captive_portal_expected_status);
+ if (conf->captive_portal_expected_response != NULL)
+ printf("\texpected response \"%s\"\n",
+ conf->captive_portal_expected_response);
+ printf("\tauto %s\n", yesno(conf->captive_portal_auto));
+ printf("}\n");
+ }
}