Make cli.py more modular

This commit is contained in:
Iam54r1n4
2025-01-24 05:24:49 +00:00
parent 5dd2b531fb
commit 562b869980
4 changed files with 557 additions and 267 deletions

View File

@ -27,8 +27,10 @@ function remove_masquerade() {
}
if [[ "$1" == "1" ]]; then
echo "Enabling 'masquerade' with URL: $2..."
enable_masquerade "$2"
elif [[ "$1" == "2" ]]; then
echo "Removing 'masquerade' from config.json..."
remove_masquerade
else
echo "Usage: $0 {1|2} [domain]"