bnetkit

simple networking utilities
git clone git://bvnf.space/bnetkit.git
Log | Files | Refs

commit d30cfb9c79735e0ee2d5b7574277cb10ce7bc376
parent 856e8ca93dd7a096a3cc917aeb121253b7c07dc3
Author: phoebos <ben@bvnf.space>
Date:   Wed, 11 May 2022 02:11:40 +0100

add gemini client

Diffstat:
Agemini | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/gemini b/gemini @@ -0,0 +1,14 @@ +#!/bin/sh -e + +[ "$#" -lt 1 ] && { + printf "usage: %s [gemini://]example.com/foo/bar\n" "$0" >&2 + exit 1 +} + + +for uri; do + case "$uri" in "gemini://"*) ;; *) uri="gemini://$uri" ;; esac + nopref="${uri##gemini://}" + host="${nopref%%/*}" + printf "%s\r\n" "$uri" | tee /dev/stderr | ./tlsnc "$host" 1965 +done