修复设置代理时,schedule 服务通信异常

This commit is contained in:
whyour 2023-10-14 23:05:25 +08:00
parent 41befcc0a8
commit bd004a0489

View File

@ -100,9 +100,6 @@ set_proxy() {
unset_proxy() { unset_proxy() {
unset http_proxy unset http_proxy
unset https_proxy unset https_proxy
unset ftp_proxy
unset all_proxy
unset no_proxy
} }
make_dir() { make_dir() {
@ -311,10 +308,8 @@ random_range() {
reload_pm2() { reload_pm2() {
cd $dir_root cd $dir_root
# 代理会影响 grpc 服务
unset_proxy
pm2 flush &>/dev/null pm2 flush &>/dev/null
pm2 startOrGracefulReload $file_ecosystem_js --update-env env ALL_PROXY= HTTP_PROXY= HTTPS_PROXY= all_proxy= http_proxy= https_proxy= pm2 startOrGracefulReload $file_ecosystem_js --update-env
} }
diff_time() { diff_time() {