diff options
Diffstat (limited to 'src/redirector.h')
-rw-r--r-- | src/redirector.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/redirector.h b/src/redirector.h index 3d62335..a076f77 100644 --- a/src/redirector.h +++ b/src/redirector.h @@ -7,16 +7,17 @@ typedef struct redirector_ctx { - forward_ctx *fwd_ctx; + forward_ctx fwd_ctx; psocket sock; char host_buf[NI_MAXHOST], service_buf[NI_MAXSERV]; } redirector_ctx; -void redirector_init_ctx(redirector_ctx **rdr_ctx, forward_ctx *fwd_ctx); +int redirector_init_ctx(redirector_ctx **rdr_ctx); int redirector_setup(redirector_ctx *rdr_ctx, - const char *listen_addr, const char *listen_port); + const char *listen_addr, const char *listen_port, + const char *host, const char *port); int redirector_validate_ctx(const redirector_ctx *rdr_ctx); |