diff options
author | atanarjuat <atanarjuat@example.com> | 2022-05-21 01:50:47 +0200 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-05-21 05:04:09 +0200 |
commit | 182e3e76908f0824eac155b5e14775b50fe0aca5 (patch) | |
tree | e0d20e237ff6159b8967a3fd4592134a35bbcf77 /Makefile | |
parent | a809112a20b31b9a4adca31ae564d943a41e9023 (diff) |
simplify testing of client and server
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
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 |