Files
StunCaddsies/test.sh
Bel LaPointe 7c9d42439e life is good
2018-10-06 14:54:42 -06:00

24 lines
524 B
Bash

#! /bin/bash
addr="${1:-${addr:-"https://blapointe.me"}}"
pport="${2:-${pport:-2018}}"
if ((pport==2018)); then
prox="${3:-${prox:-https://localhost}}"
else
prox="${3:-${prox:-http://localhost}}"
fi
if [ "$badcert" ]; then
client="--proxy-key ./badstunclient.key --proxy-cert ./badstunclient.crt"
elif [ -z "$nocert" ]; then
client="--proxy-key ./stunclient.key --proxy-cert ./stunclient.crt"
fi
curl \ #-v \
--proxy-cacert ./stunserver.crt \
$client \
-U breel:ok \
-x $prox:$pport \
$addr