Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
a3184c85
Commit
a3184c85
authored
Jun 07, 1999
by
Balázs Scheidler
Committed by
Niels Möller
Jun 07, 1999
Browse files
* src/lshd.c (main): Added tcpforward support (Bazsi).
Rev: src/lshd.c:1.50
parent
c49666af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lshd.c
View file @
a3184c85
...
...
@@ -46,6 +46,7 @@
#include
"xalloc.h"
#include
"compress.h"
#include
"server_pty.h"
#include
"tcpforward.h"
#include
"getopt.h"
...
...
@@ -65,6 +66,9 @@
#include
<unistd.h>
#endif
/* FIXME: Add configure and runtime options instead */
#define WITH_TCPFORWARD_SUPPORT 1
/* Block size for stdout and stderr buffers */
#define BLOCK_SIZE 32768
...
...
@@ -460,7 +464,14 @@ int main(int argc, char **argv)
&
unix_userauth
.
super
,
-
1
),
make_alist
(
1
,
ATOM_SSH_CONNECTION
,
make_server_connection_service
(
make_alist
(
0
,
-
1
),
(
make_alist
(
0
#if WITH_TCPFORWARD_SUPPORT
+
2
,
ATOM_TCPIP_FORWARD
,
make_tcpip_forward_request
(
backend
),
ATOM_CANCEL_TCPIP_FORWARD
,
make_cancel_tcpip_forward_request
()
#endif
/* WITH_TCPFORWARD_SUPPORT */
,
-
1
),
make_alist
(
1
#if WITH_PTY_SUPPORT
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment