• Martin Storsjö's avatar
    lavf: Handle the environment variable no_proxy more properly · de9cd1b1
    Martin Storsjö authored
    The handling of the environment variable no_proxy, present since
    one of the initial commits (de6d9b64), is inconsistent with
    how many other applications and libraries interpret this
    variable. Its bare presence does not indicate that the use of
    proxies should be skipped, but it is some sort of pattern for
    hosts that does not need using a proxy (e.g. for a local network).
    As investigated by Rudolf Polzer, different libraries handle this
    in different ways, some supporting IP address masks, some supporting
    arbitrary globbing using *, some just checking that the pattern matches
    the end of the hostname without regard for whether it actually is
    the right domain or a domain that ends in the same string.
    This simple logic should be pretty similar to the logic used by
    lynx and curl.
    Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
http.c 24.2 KB