mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
Reintroduce ssh_forward_listen() (Fixes: #194)
Signed-off-by: Aris Adamantiadis <aris@badcode.be>
This commit is contained in:
committed by
Aris Adamantiadis
parent
5eb7a6ca38
commit
8a4a22d7b7
@@ -2205,6 +2205,11 @@ error:
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* DEPRECATED */
|
||||
int ssh_forward_listen(ssh_session session, const char *address, int port, int *bound_port) {
|
||||
return ssh_channel_listen_forward(session, address, port, bound_port);
|
||||
}
|
||||
|
||||
/* DEPRECATED */
|
||||
ssh_channel ssh_forward_accept(ssh_session session, int timeout_ms) {
|
||||
return ssh_channel_accept(session, SSH_CHANNEL_FORWARDED_TCPIP, timeout_ms, NULL);
|
||||
|
||||
Reference in New Issue
Block a user