version 1.38, 2000/10/11 20:27:23 |
version 1.39, 2000/10/14 12:12:09 |
|
|
* by the client telling us, so we can equally well trust the client |
* by the client telling us, so we can equally well trust the client |
* not to request anything bogus.) |
* not to request anything bogus.) |
*/ |
*/ |
if (!no_port_forwarding_flag) |
if (!no_port_forwarding_flag && options.allow_tcp_forwarding) |
channel_permit_all_opens(); |
channel_permit_all_opens(); |
|
|
s = session_new(); |
s = session_new(); |
|
|
case SSH_CMSG_PORT_FORWARD_REQUEST: |
case SSH_CMSG_PORT_FORWARD_REQUEST: |
if (no_port_forwarding_flag) { |
if (no_port_forwarding_flag) { |
debug("Port forwarding not permitted for this authentication."); |
debug("Port forwarding not permitted for this authentication."); |
|
break; |
|
} |
|
if (!options.allow_tcp_forwarding) { |
|
debug("Port forwarding not permitted."); |
break; |
break; |
} |
} |
debug("Received TCP/IP port forwarding request."); |
debug("Received TCP/IP port forwarding request."); |