locked
How to read proxy setting ipv4/ipv6 in dotnet core ubuntu RRS feed

  • Question

  • User333920299 posted

    Hi Experts,

    please let me know how i can read proxy settings in ubuntu 20.04.

    also how i can get the bypass list from the proxy settings.

    please provide me snippet of code for the above.

    Thanks in advance,

    KK

    Wednesday, May 27, 2020 8:19 AM

Answers

  • User-474980206 posted

    the most common approach is to set the environment variable no_proxy to the bypass list, so its:

    var bypassList = Environment.GetEnvironmentVariable("no_proxy");

    note: in linux proxy settings are a feature of the desktop application you are using, there is no standard os setting. check the documentation of the desktop environment you are using to see what is used. the standard environment variable names are:

    http_proxy
    https_proxy
    ftp_proxy
    no_proxy

    if the desktop does not set this by default, just add the setting to default environment.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 27, 2020 3:15 PM

All replies

  • User-474980206 posted

    the most common approach is to set the environment variable no_proxy to the bypass list, so its:

    var bypassList = Environment.GetEnvironmentVariable("no_proxy");

    note: in linux proxy settings are a feature of the desktop application you are using, there is no standard os setting. check the documentation of the desktop environment you are using to see what is used. the standard environment variable names are:

    http_proxy
    https_proxy
    ftp_proxy
    no_proxy

    if the desktop does not set this by default, just add the setting to default environment.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 27, 2020 3:15 PM
  • User333920299 posted

    Thank you so much for your feedback.

    Thursday, June 4, 2020 6:55 AM