Skip to content

Commit

Permalink
Add support for no_proxy (#1476)
Browse files Browse the repository at this point in the history
* Adding proxy from environment fix
  • Loading branch information
vibhansa-msft authored Aug 8, 2024
1 parent b47e5fa commit 78a335b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import (

// Standard config default values
const (
blobfuse2Version_ = "2.3.1"
blobfuse2Version_ = "2.3.2"

DefaultMaxLogFileSize = 512
DefaultLogFileCount = 10
Expand Down
5 changes: 0 additions & 5 deletions component/azstorage/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ const (
EnvAzStorageAadEndpoint = "AZURE_STORAGE_AAD_ENDPOINT"
EnvAzStorageAuthType = "AZURE_STORAGE_AUTH_TYPE"
EnvAzStorageBlobEndpoint = "AZURE_STORAGE_BLOB_ENDPOINT"
EnvHttpProxy = "http_proxy"
EnvHttpsProxy = "https_proxy"
EnvAzStorageAccountContainer = "AZURE_STORAGE_ACCOUNT_CONTAINER"
EnvAzAuthResource = "AZURE_STORAGE_AUTH_RESOURCE"
EnvAzStorageCpkEncryptionKey = "AZURE_STORAGE_CPK_ENCRYPTION_KEY"
Expand Down Expand Up @@ -219,9 +217,6 @@ func RegisterEnvVariables() {

config.BindEnv("azstorage.mode", EnvAzStorageAuthType)

config.BindEnv("azstorage.http-proxy", EnvHttpProxy)
config.BindEnv("azstorage.https-proxy", EnvHttpsProxy)

config.BindEnv("azstorage.container", EnvAzStorageAccountContainer)

config.BindEnv("azstorage.auth-resource", EnvAzAuthResource)
Expand Down
2 changes: 1 addition & 1 deletion component/azstorage/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func setSDKLogListener() {
func newBlobfuse2HttpClient(conf *AzStorageConfig) (*http.Client, error) {
var ProxyURL func(req *http.Request) (*url.URL, error)
if conf.proxyAddress == "" {
ProxyURL = nil
ProxyURL = http.ProxyFromEnvironment
} else {
u, err := url.Parse(conf.proxyAddress)
if err != nil {
Expand Down

0 comments on commit 78a335b

Please sign in to comment.