diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-09-02 01:10:43 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-09-02 17:52:15 +0200 |
commit | e3892606908bf60c9532cf10b0c4e46868806fe1 (patch) | |
tree | accc72188a380a8a42d499be08d9b2d66af411fd /uhttpd.h | |
parent | 15346de8d3ba422002496526ee24c62a3601ab8c (diff) |
uhttpd: add SO_BINDTODEVICE supportbind-to-device
Add command line option "-b <interface>" which binds the ports
(and addresses) in the following "-p" and "-s" options to the specified
network interface with SO_BINDTODEVICE.
Using SO_BINDTODEVICE means uhttpd will only accept incoming traffic from
the specified network interface.
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
Diffstat (limited to 'uhttpd.h')
-rw-r--r-- | uhttpd.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -289,7 +289,7 @@ bool uh_accept_client(int fd, bool tls); void uh_unblock_listeners(void); void uh_setup_listeners(void); -int uh_socket_bind(const char *host, const char *port, bool tls); +int uh_socket_bind(const char *host, const char *port, const char *device, bool tls); int uh_first_tls_port(int family); |