#!/bin/bash case "$1" in 'on'|'off') networksetup -setsocksfirewallproxystate Wi-Fi $1 networksetup -setsocksfirewallproxystate Ethernet $1 ;; *) echo "Usage: sudo $0 on|off" exit ;; esac networksetup -getsocksfirewallproxy Wi-Fi networksetup -getsocksfirewallproxy Ethernet
Sunday, June 14, 2015
Quickly Turns On/Off SOCKS Proxy for MacOS X
Diposkan oleh Andika Triwidada 1 komentar
Tag: macos x, proxy, shell script
Subscribe to:
Posts (Atom)