mirror of
https://github.com/notwa/rc
synced 2024-11-05 05:59:04 -08:00
add websocat
support to burl
This commit is contained in:
parent
03b90f9c9c
commit
f53e9865df
1 changed files with 2 additions and 0 deletions
2
sh/burl
2
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
|
||||
|
|
Loading…
Reference in a new issue