From 910166b3d67652abb54dece7e1cacdc9dcfdb659 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 28 May 2020 04:06:28 +0200 Subject: iproxy: Allow specifying source address for the listening socket --- common/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/socket.h') diff --git a/common/socket.h b/common/socket.h index 38eeddf..f510147 100644 --- a/common/socket.h +++ b/common/socket.h @@ -45,7 +45,7 @@ typedef enum fd_mode fd_mode; int socket_create_unix(const char *filename); int socket_connect_unix(const char *filename); #endif -int socket_create(uint16_t port); +int socket_create(const char *addr, uint16_t port); int socket_connect_addr(struct sockaddr *addr, uint16_t port); int socket_connect(const char *addr, uint16_t port); int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout); -- cgit v1.1-32-gdbae