bind to port as well with -b

This commit is contained in:
Matt Johnston
2018-01-26 00:27:48 +08:00
parent 9c7ecf6d14
commit e4ac7ea1ca
8 changed files with 71 additions and 31 deletions

View File

@@ -30,7 +30,7 @@ typedef void(*connect_callback)(int result, int sock, void* data, const char* er
/* Always returns a progress connection, if it fails it will call the callback at a later point */
struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport,
connect_callback cb, void *cb_data, char* bind_address);
connect_callback cb, void *cb_data, const char* bind_address, const char* bind_port);
/* Sets up for select() */
void set_connect_fds(fd_set *writefd);