Skip to content

Instantly share code, notes, and snippets.

@vincent178
Created April 12, 2022 23:38
Show Gist options
  • Save vincent178/3cb16d6c893d451f45818ff04fc2b2df to your computer and use it in GitHub Desktop.
Save vincent178/3cb16d6c893d451f45818ff04fc2b2df to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eof pipefail
# download proxy list from provider
proxies=$(cat /tmp/dler | awk -F \= '{ print $1"," }' | tr -d '\n' | sed 's/,$//')
echo "[Proxy]
$(cat /tmp/dler)
[Proxy Group]
PROXY = url-test, $proxies
" > dler.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment