15 lines
524 B
Bash
Executable File
15 lines
524 B
Bash
Executable File
#! /bin/bash
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
if [ ! -d /Volumes/bldisk ]; then
|
|
bash ./ramdisk.sh
|
|
pushd /Volumes/bldisk/
|
|
for i in secret client.crt client.key server.crt; do
|
|
read -p "Ready for $i?" asdf
|
|
pbpaste > $i
|
|
done
|
|
popd
|
|
fi
|
|
port="${1:-9181}"
|
|
echo Proxy on :$port
|
|
go build -o /tmp/out && /tmp/out -fromcrt "" -port $port -secret "$(cat /Volumes/bldisk/secret)" -toaddr https://bel.house:41312 -bypass youtube.com,,googlevideo.com,,youtu.be -whitelist 192.168.0.86,,scratch.com,,192.168.0.1
|