diff --git a/dot/.bashrc.d/proxy.bash b/dot/.bashrc.d/proxy.bash index a632e09..80eff9a 100644 --- a/dot/.bashrc.d/proxy.bash +++ b/dot/.bashrc.d/proxy.bash @@ -1,5 +1,6 @@ -HTTP_PROXY="http://192.168.1.13:20172" -SOCKS_PROXY="socks5://192.168.1.13:20170" +PROXY_IP="192.168.0.104" +HTTP_PROXY="http://${PROXY_IP}:20172" +SOCKS_PROXY="socks5://${PROXY_IP}:20170" set-shell-proxy() { export http_proxy="$HTTP_PROXY" diff --git a/autoproxy.pac b/dot/.mozilla/autoproxy.pac similarity index 89% rename from autoproxy.pac rename to dot/.mozilla/autoproxy.pac index cd8d0c7..0f6db89 100644 --- a/autoproxy.pac +++ b/dot/.mozilla/autoproxy.pac @@ -1,5 +1,6 @@ /* -*- mode: js; -*- */ -const PROXY = 'SOCKS5 192.168.1.13:20170; HTTP 192.168.1.13:20172; DIRECT'; +const proxy_ip = "192.168.0.104" +const PROXY = `SOCKS5 ${proxy_ip}:20170; HTTP ${proxy_ip}:20172; DIRECT`; const DIRECT = 'DIRECT'; const direct_ip_list = [