wget-dev
[Top][All Lists]
Advanced

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

Re: wget2 | Draft: CIDR support added for No Proxy. Testing Code Added (


From: @rockdaboot
Subject: Re: wget2 | Draft: CIDR support added for No Proxy. Testing Code Added (!521)
Date: Sun, 09 Apr 2023 11:32:00 +0000



Tim Rühsen started a new discussion on libwget/http.c: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/521#note_1346093180

>       return 0;
>  }
>  
> +wget_vector* wget_http_get_no_proxy(void){
> +     return no_proxies;
> +}
> +
> +bool wget_http_cidr_match(const char *cidr, struct in_addr *addr)
> +{
> +     char *slash_pos = strchr(cidr, '/');

```suggestion:-0+0
        const char *slash = strchr(cidr, '/');
```
strchr does not give you a position, it gives you a pointer.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/521#note_1346093180
You're receiving this email because of your account on gitlab.com.




reply via email to

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