bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] no_proxy env ip address range support


From: Aníbal Limón
Subject: Re: [Bug-wget] no_proxy env ip address range support
Date: Thu, 16 Apr 2015 14:06:43 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi,

On 16/04/15 02:18, Giuseppe Scrivano wrote:
Hi Aníbal,

Aníbal Limón <address@hidden> writes:

Hi guys,

I noticed that wget only support domain names entries into no_proxy
env-var, i think will be good to
add support for IPs and IP ranges.

I reviewed the code and i think can be added to
src/retr.c:no_proxy_match , that will be resolv
the host to IP if the no_proxy variable contains an IP and then
validate if match.

It would be a change that could add?, Comments?
I agree with you, do you already have in mind how the interface for the
users to specify the ranges should look?

Now i wrote the func to validate the subnet addrees and it look like,

Common subnets but not restricted to: 10.0.0.0/8, 172.16.0.0/16, 192.168.1.0/24

I'm writing the func to validate if an IP is part of subnet, i don't know if i can use a code done by Paul Vixie that exist in a PostgreSQL inet ADT, a couple years ago i made a shared lib of that code
 [1].

[1] https://github.com/alimon/pgsql_inet

Regards,
Giuseppe


Cheers,
    alimon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]