openvpn-on-client-disconnect.sh 187 Bytes
Newer Older
1 2 3 4
#!/usr/bin/env bash

curl 'http://127.0.0.1:3000/api/onDisconnect/' -X POST \
    --data-urlencode "cn=${common_name}" \
5 6
    --data-urlencode "token@/run/admin-token" \
    --max-time 15