From f53e9865dffe70800969e90425c395308d45b31e Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 15 Jul 2024 03:48:15 -0700 Subject: [PATCH] add `websocat` support to `burl` --- sh/burl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sh/burl b/sh/burl index c9284a7..66c2469 100755 --- a/sh/burl +++ b/sh/burl @@ -46,6 +46,8 @@ burl() ( ### @- then wrapped() { process busybox nc -- "$@" ;} elif socat /dev/null /dev/null then wrapped() { process socat - "TCP:$1:$2" ;} + elif websocat; [ $? = 1 ] + then wrapped() { websocat --binary - "tcp:$1:$2" ;} elif curl; [ $? = 2 ] then wrapped() { process curl "telnet://$1:$2" ;} else return 127