From 0a3199166263944cc78f1227b6e9730893554bd8 Mon Sep 17 00:00:00 2001 From: huty Date: Thu, 10 Apr 2025 16:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20sp=20=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sp b/sp index 3cb567b..d86110b 100755 --- a/sp +++ b/sp @@ -34,7 +34,7 @@ setSystemdProxy () { echo 'DefaultEnvironment="HTTP_PROXY=http://'$PROXY_URL'"' >> /etc/systemd/system.conf.d/proxy.conf echo 'DefaultEnvironment="HTTPS_PROXY=http://'$PROXY_URL'"' >> /etc/systemd/system.conf.d/proxy.conf echo 'DefaultEnvironment="FTP_PROXY=http://'$PROXY_URL'"' >> /etc/systemd/system.conf.d/proxy.conf - echo 'DefaultEnvironment="NO_PROXY=localhost,127.0.0.1"' >> /etc/systemd/system.conf.d/proxy.conf + echo 'DefaultEnvironment="NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,10.20.0.0/16,192.168.0.0/16,.svc,.cluster.local"' >> /etc/systemd/system.conf.d/proxy.conf systemctl daemon-reexec echo '------------------------------ 系统代理设置完成! ------------------------------' @@ -63,7 +63,7 @@ setShellProxy () { echo 'export http_proxy="http://'$PROXY_URL'"' >> /etc/profile echo 'export https_proxy="http://'$PROXY_URL'"' >> /etc/profile echo 'export ftp_proxy="http://'$PROXY_URL'"' >> /etc/profile - echo 'export no_proxy="localhost,127.0.0.1"' >> /etc/profile + echo 'export no_proxy="localhost,127.0.0.1,10.96.0.0/12,10.20.0.0/16,192.168.0.0/16,.svc,.cluster.local"' >> /etc/profile echo '# PROXY Env End' >> /etc/profile source /etc/profile @@ -72,7 +72,7 @@ setShellProxy () { echo 'export http_proxy="http://'$PROXY_URL'"' >> ~/.bashrc echo 'export https_proxy="http://'$PROXY_URL'"' >> ~/.bashrc echo 'export ftp_proxy="http://'$PROXY_URL'"' >> ~/.bashrc - echo 'export no_proxy="localhost,127.0.0.1"' >> ~/.bashrc + echo 'export no_proxy="localhost,127.0.0.1,10.96.0.0/12,10.20.0.0/16,192.168.0.0/16,.svc,.cluster.local"' >> ~/.bashrc echo '# PROXY Env End' >> ~/.bashrc source /etc/profile