From e3e36aba50777b03ed64a1c00702392a8bfeb8b3 Mon Sep 17 00:00:00 2001 From: Olof Hagsand Date: Thu, 24 Jun 2021 14:31:59 +0000 Subject: [PATCH] test restconf: restconf proto should be default https only for native, not fcgi --- test/lib.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/lib.sh b/test/lib.sh index cb6ec4a5..67b7e82c 100755 --- a/test/lib.sh +++ b/test/lib.sh @@ -127,7 +127,12 @@ DEMSLEEP=.2 let DEMLOOP=5*DEMWAIT # RESTCONF protocol, eg http or https -: ${RCPROTO:=https} + +if [ "${WITH_RESTCONF}" = "fcgi" ]; then + : ${RCPROTO:=http} +else + : ${RCPROTO:=https} +fi # www user (on linux typically www-data, freebsd www) # Start restconf user, can be root which is dropped to wwwuser