Skip to content

[Bug] No matter what the HTTP proxy environment variables are set to, the system proxy type will always be noproxy #11078

@HynoR

Description

@HynoR

Contact Information

No response

1Panel Version

2.0.13

Problem Description

无论环境变量里 http proxy 如何,类型总会是 noproxy

httpProxy := os.Getenv("http_proxy")
if httpProxy == "" {
httpProxy = os.Getenv("HTTP_PROXY")
}
if httpProxy != "" {
baseInfo.SystemProxy = httpProxy
}
baseInfo.SystemProxy = "noProxy"

Steps to Reproduce

参见代码

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions