mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
config: better debug messages on default vhost
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -205,6 +205,9 @@ static void figure_auth_funcs(void *pool, const char *vhostname,
|
||||
if (auth == NULL)
|
||||
return;
|
||||
|
||||
if (vhostname[0] == 0)
|
||||
vhostname = "vhost:default";
|
||||
|
||||
if (primary != 0) {
|
||||
/* Set the primary authentication methods */
|
||||
for (j=0;j<auth_size;j++) {
|
||||
@@ -243,7 +246,7 @@ static void figure_auth_funcs(void *pool, const char *vhostname,
|
||||
}
|
||||
talloc_free(auth[j]);
|
||||
}
|
||||
fprintf(stderr, NOTESTR"%ssetting '%s' as primary authentication method\n", vhostname, config->auth[0].name);
|
||||
fprintf(stderr, NOTESTR"%s: setting '%s' as primary authentication method\n", vhostname, config->auth[0].name);
|
||||
} else {
|
||||
unsigned x = config->auth_methods;
|
||||
/* Append authentication methods (alternative options) */
|
||||
|
||||
Reference in New Issue
Block a user