diff --git a/k8s/template-yaml/k8s-7management.yaml b/k8s/template-yaml/k8s-7management.yaml index b87c1b10..57088d5d 100644 --- a/k8s/template-yaml/k8s-7management.yaml +++ b/k8s/template-yaml/k8s-7management.yaml @@ -23,10 +23,6 @@ spec: value: Asia/Shanghai - name: JAVA_TOOL_OPTIONS value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005" - - name: HTTP_PROXY - value: "http://172.20.32.253:3128" - - name: HTTPS_PROXY - value: "http://172.20.32.253:3128" ports: - containerPort: 9213 volumeMounts: diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/HttpUtils.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/HttpUtils.java index 0b6db3df..708a9500 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/HttpUtils.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/HttpUtils.java @@ -555,6 +555,7 @@ public class HttpUtils { * @throws IOException 如果请求失败或发生其他 I/O 错误。 */ public static InputStream getIntputStream(String url, Map headers) throws IOException { + clearProxySettings(); URL requestUrl = new URL(url); HttpURLConnection connection = (HttpURLConnection) requestUrl.openConnection();