<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39834</bug_id>
          
          <creation_ts>2021-03-22 14:37:34 +0300</creation_ts>
          <short_desc>Поддержка NO_PROXY</short_desc>
          <delta_ts>2021-06-16 23:04:55 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>apt</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="pav@altlinux.org">pav</assigned_to>
          <cc>aen</cc>
    
    <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>197145</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2021-03-22 14:37:34 +0300</bug_when>
    <thetext>При использовании прокси-сервера, указанного в переменной среды http_proxy, игнорируется переменная среды NO_PROXY (apt/methods/http.cc:289):
   // Determine the proxy setting
   if (getenv(&quot;http_proxy&quot;) == 0)                                                                                                                                                              
   {
      string DefProxy = _config-&gt;Find(&quot;Acquire::http::Proxy&quot;);
      string SpecificProxy = _config-&gt;Find(&quot;Acquire::http::Proxy::&quot; + ServerName.Host);
      if (SpecificProxy.empty() == false)
      {
         if (SpecificProxy == &quot;DIRECT&quot;)
            Proxy = &quot;&quot;;
         else
            Proxy = SpecificProxy;
      }
      else
         Proxy = DefProxy;
   }
   else
      Proxy = getenv(&quot;http_proxy&quot;);

Необходимо реализовать поддержку исключений в переменной no_proxy согласно https://www.w3.org/Daemon/User/Proxies/ProxyClients.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>