Skip to content

Commit 19074e1

Browse files
committed
remove curlopts function
TLS 1.2 is the only supported version by Canvas servers. Regardless of if the client supports 1.3 it can't negotiate. no point in setting tls version and max version to 1.2
1 parent 2746440 commit 19074e1

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

insthelp/insthelp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,7 @@ setrenderer() {
4949
exit
5050
}
5151

52-
curlopts="--retry 2 --retry-connrefused -s -S -g"
53-
curlopts() {
54-
tls=$(openssl ciphers -v | sed -ne '/TLSv1/p')
55-
if [[ $tls == *"TLSv1.3"* ]]; then
56-
curlopts="$curlopts --tlsv1.3"
57-
else
58-
curlopts="$curlopts --tlsv1.2"
59-
fi
60-
}
61-
curlopts
52+
curlopts="--retry 2 --retry-connrefused -s -S -g --tlsv1.2"
6253

6354
logo() {
6455
local cmd=$1

0 commit comments

Comments
 (0)