diff options
author | multiplexd <multi@in-addr.xyz> | 2020-02-17 19:46:02 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-18 16:11:57 -0500 |
commit | 91e38abd714d5dda2764022ea370d7dde73a55cc (patch) | |
tree | 03d4b9966168ca631c7c6093e51dfe888f8e1bbe /bounce.h | |
parent | Use Xr for the first "pounce" in README (diff) | |
download | pounce-91e38abd714d5dda2764022ea370d7dde73a55cc.tar.gz pounce-91e38abd714d5dda2764022ea370d7dde73a55cc.zip |
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)).
Diffstat (limited to '')
-rw-r--r-- | bounce.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, ...) |