Skip to content

Commit 9e29b35

Browse files
committed
open socket error message, not stdout
1 parent 9743a96 commit 9e29b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ http_head_printf() {
19391939
IFS=/ read -r proto foo node query <<< "$1"
19401940
node=${node%:*}
19411941
# $node works here good as it connects via IPv6 first, then IPv4
1942-
bash -c "exec 33<>/dev/tcp/$node/80" >/dev/null &
1942+
bash -c "exec 33<>/dev/tcp/$node/80" 2>/dev/null &
19431943
wait_kill $! $HEADER_MAXSLEEP
19441944
if [[ $? -ne 0 ]]; then
19451945
# not killed --> socket open. Now we connect to the virtual host "$node"

0 commit comments

Comments
 (0)