From 182e3e76908f0824eac155b5e14775b50fe0aca5 Mon Sep 17 00:00:00 2001 From: atanarjuat Date: Sat, 21 May 2022 01:50:47 +0200 Subject: simplify testing of client and server --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3552bc0 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +OBFS4_ENDPOINT ?= +OBFS4_CERT ?= + +certs: + curl -k https://black.riseup.net/ca.crt > /tmp/ca.crt + curl -k https://api.black.riseup.net/3/cert > /tmp/cert.pem + +build-client: + go get ./... + go build -o obfsvpn-client ./client + +run-client: + ./obfsvpn-client -c ${OBFS4_CERT} + +run-openvpn: + ./scripts/run-openvpn-client.sh + +check: + curl https://wtfismyip.com/json -- cgit v1.2.3