[Top][All Lists]

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

Re: wget2 | Add option --bind-interface (!462)

From: Tim Rühsen
Subject: Re: wget2 | Add option --bind-interface (!462)
Date: Tue, 10 Dec 2019 07:27:30 +0000

Tim Rühsen started a new discussion on libwget/net.c: 

>       if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (void *)&on, sizeof(on)) 
> == -1)
>               error_printf(_("Failed to set socket option NODELAY\n"));
> +     if (tcp->bind_interface) {
> +             if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, 
> tcp->bind_interface,strlen(tcp->bind_interface)) == -1)

Missing space before `strlen`.

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

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