Multiple values in headers

Hello,

we have setup traefik (2.3.1) in Rancher (2.5.1). We want to deploy an older application in Kubernetes which relies rather heavily on the environment- and server-variables.

And after testing we found that there are multiple values where our application exptecs a single value.

For example:
Expected: [REMOTE_ADDR] => 10.0.0.11
Current: [REMOTE_ADDR] => 10.0.0.11, 10.42.2.0

Expected: [SERVER_ADDR] => 10.10.0.36
Current: [SERVER_ADDR] => 10.42.4.41

Expected: [HTTP_X_FORWARDED_FOR] => 10.0.0.11
Current: [HTTP_X_FORWARDED_FOR] => 10.0.0.11, 10.42.2.0

Is there a way to "hide" the kubernetes ips in the header?

Thanks in adavance