Skip to content

Commit 388f3ae

Browse files
committed
hostname is not defined by POSIX, use portable uname -n instead.
1 parent 6829996 commit 388f3ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ADDITIONAL_CA_FILES="${ADDITIONAL_CA_FILES:-""}" # single file with a CA in PEM
138138
CIPHERS_BY_STRENGTH_FILE=""
139139
TLS_DATA_FILE="" # mandatory file for socket-based handshakes
140140
OPENSSL_LOCATION=""
141-
HNAME="$(hostname)"
141+
HNAME="$(uname -n)"
142142
HNAME="${HNAME%%.*}"
143143

144144
declare CMDLINE

0 commit comments

Comments
 (0)