summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-09-02 01:10:43 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2021-09-02 17:52:15 +0200
commite3892606908bf60c9532cf10b0c4e46868806fe1 (patch)
treeaccc72188a380a8a42d499be08d9b2d66af411fd /uhttpd.h
parent15346de8d3ba422002496526ee24c62a3601ab8c (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/uhttpd.h b/uhttpd.h
index e61e176..77273a7 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -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);