BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Bind bbd to a single interface
In <cc69d7b10409301042716a4348@mail.gmail.com> SB <thebofh@gmail.com> writes:
>Any way to bind bbd to a single interface?
>It looks like bbd is hard-coded to bind to all interfaces (see
>INADDR_ANY on line 984)
That's correct.
Change the line (1004 in bb 1.9e) from
serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
to
inet_aton("127.0.0.1", (struct in_addr *) &serv_addr.sin_addr.s_addr);
And if you dont want to listen on "127.0.0.1" just put in another IP-
adress (not hostname) there.
Henrik
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index