# \[Feature Request\] Support for comma-separated no\_proxy envrionment variables

**URL:** <https://hub.mender.io/t/feature-request-support-for-comma-separated-no-proxy-envrionment-variables/8374>\
**Category:** General Discussions\
**Tags:** feature-request, proxy\
**Created:** [September 28, 2026, 8:58am UTC](https://hub.mender.io/t/feature-request-support-for-comma-separated-no-proxy-envrionment-variables/8374 "2026-09-28T08:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carl1509](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/carl1509/32/2751_2.png) [@Carl1509](https://hub.mender.io/u/Carl1509)\
**Post date:** [September 28, 2026, 8:58am UTC](https://hub.mender.io/t/feature-request-support-for-comma-separated-no-proxy-envrionment-variables/8374/1 "2026-09-28T08:58:06Z")

</div>

Hey,

we are using Mender alongside other services on devices at customer sites. When a customer needs a proxy, we’d like a single, centralized configuration file with the proxy-related environment variables that we inject into all services that need them.

Most HTTP client libraries (libcurl, Go’s net/http, .NET) expect `no_proxy` as a comma-separated list, e.g.:

```auto
no_proxy=localhost,.example.com,foo.bar

```

The Mender documentation, however, states that the client only supports a whitespace-separated list:  
[Configuration | Mender documentation](https://docs.mender.io/client-installation/configuration#environment-variables)

Which matches the implementation here:

> <https://github.com/mendersoftware/mender/blob/f6e969a6ad81fe5707332cb0acadad25937df062/src/common/http/http.cpp#L532-L550>

Is there a reason not to also support comma-separated lists?  
A whitespace-separated list never contains a comma, and vice versa, so the code could check for a comma and split on `,` if present, otherwise on whitespace. This wouldn’t break existing configurations.

```diff
 bool HostNameMatchesNoProxy(const string &host, const string &no_proxy) {
-	auto entries = common::SplitString(no_proxy, " ");
+	auto entries = common::SplitString(no_proxy, no_proxy.find(',') != string::npos ? "," : " ");
 	for (string &entry : entries) {

```

**Edit:** Since `mender-update` only accepts a whitespace-separated `no_proxy`, its child processes inherit that value too. Since most HTTP libraries expect commas, they then fail to parse it and effectively ignore `no_proxy`.
