Skip to content

Commit

Permalink
burl: fix websocat fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
notwa committed Dec 5, 2024
1 parent 7d8d529 commit b761967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sh/burl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ burl() ( ### @-
elif socat /dev/null /dev/null
then wrapped() { process socat - "TCP:$1:$2" ;}
elif websocat; [ $? = 1 ]
then wrapped() { websocat --binary - "tcp:$1:$2" ;}
then wrapped() { process websocat --binary - "tcp:$1:$2" ;}
elif curl; [ $? = 2 ]
then wrapped() { process curl "telnet://$1:$2" ;}
else return 127
Expand Down

0 comments on commit b761967

Please sign in to comment.