Загрузка данных


set networkService to "Wi-Fi"

set s to do shell script "networksetup -getsocksfirewallproxy " & quoted form of networkService
if s contains "Enabled: Yes" then
    do shell script "networksetup -setsocksfirewallproxystate " & quoted form of networkService & " off"
    display notification "Прокси выключен" with title "VPN Proxy"
else
    do shell script "networksetup -setsocksfirewallproxystate " & quoted form of networkService & " on"
    display notification "Прокси включён" with title "VPN Proxy"
end if