version 1.266, 2006/08/29 10:40:18 |
version 1.267, 2006/12/12 03:58:42 |
|
|
/* Send the forward request to the remote side. */ |
/* Send the forward request to the remote side. */ |
if (compat20) { |
if (compat20) { |
const char *address_to_bind; |
const char *address_to_bind; |
if (listen_host == NULL) |
if (listen_host == NULL) { |
address_to_bind = "localhost"; |
if (datafellows & SSH_BUG_RFWD_ADDR) |
else if (*listen_host == '\0' || strcmp(listen_host, "*") == 0) |
address_to_bind = "127.0.0.1"; |
address_to_bind = ""; |
else |
else |
address_to_bind = "localhost"; |
|
} else if (*listen_host == '\0' || |
|
strcmp(listen_host, "*") == 0) { |
|
if (datafellows & SSH_BUG_RFWD_ADDR) |
|
address_to_bind = "0.0.0.0"; |
|
else |
|
address_to_bind = ""; |
|
} else |
address_to_bind = listen_host; |
address_to_bind = listen_host; |
|
|
packet_start(SSH2_MSG_GLOBAL_REQUEST); |
packet_start(SSH2_MSG_GLOBAL_REQUEST); |