Skip to content

Commit 18cd804

Browse files
committed
conf: fix authenticate option
Signed-off-by: He Xian <hexian000@outlook.com>
1 parent 6142536 commit 18cd804

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/conf.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ bool conf_check(const struct config *restrict conf)
8484
LOGE("incompatible flags are specified");
8585
return false;
8686
}
87+
const bool auth_supported =
88+
(conf->forward == NULL && !conf->transparent);
89+
#else
90+
const bool auth_supported = (conf->forward == NULL);
8791
#endif
88-
const bool auth_supported = conf->http_listen != NULL;
8992
if (conf->block_global && conf->block_local) {
9093
LOGE("incompatible outbound policies are specified");
9194
return false;

0 commit comments

Comments
 (0)