From 91e38abd714d5dda2764022ea370d7dde73a55cc Mon Sep 17 00:00:00 2001 From: multiplexd Date: Mon, 17 Feb 2020 19:46:02 +0000 Subject: Implement source address selection This commit introduces a '-S' command line option and a "bind" configuration file option for selecting the source address when making outbound TCP connections (similar to the corresponding option in catgirl(1)). --- bounce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bounce.h') diff --git a/bounce.h b/bounce.h index a0f9160..20d7d40 100644 --- a/bounce.h +++ b/bounce.h @@ -133,7 +133,7 @@ size_t localUnix(int fds[], size_t cap, const char *path); struct tls *localAccept(int *fd, int bind); void serverConfig(bool insecure, const char *cert, const char *priv); -int serverConnect(const char *host, const char *port); +int serverConnect(const char *bindHost, const char *host, const char *port); void serverRecv(void); void serverSend(const char *ptr, size_t len); void serverFormat(const char *format, ...) -- cgit 1.4.1