File: 01-document-bind-to-address.patch

package info (click to toggle)
httptunnel 3.3%2Bdfsg-6
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,500 kB
  • sloc: ansic: 4,754; makefile: 26; sh: 4
file content (47 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From: Teemu Hukkanen <tjhukkan@iki.fi>
Date: Sat, 16 Mar 2024 16:04:36 +0200
Subject: Document that hts can bind to an ip address

Bug-Debian: http://bugs.debian.org/501833

Applied-Upstream: commit:8edee35632285b7941139926f187ffd3403c3ada
---
 hts.1 | 5 +++--
 hts.c | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/hts.1 b/hts.1
index 6363b87..fe8ff38 100644
--- a/hts.1
+++ b/hts.1
@@ -3,14 +3,15 @@
 hts \- httptunnel server
 .SH SYNOPSIS
 .B hts
-.I "[options] [port]"
+.I "[options] [host:][port]"
 .SH "DESCRIPTION"
 This manual page briefly documents the
 .BR hts
 command.
 .PP
 .B hts
-listens for incoming httptunnel connections at PORT (default port is 8888).
+listens for incoming httptunnel connections at PORT (default port is
+8888), and optionally binds to ip address HOST.
 When a connection is made, I/O is redirected to the destination specified
 by the --device or --forward-port switch.
 .SH OPTIONS
diff --git a/hts.c b/hts.c
index c318fba..1dcd021 100644
--- a/hts.c
+++ b/hts.c
@@ -40,7 +40,7 @@ static void
 usage (FILE *f, const char *me)
 {
   fprintf (f,
-"Usage: %s [OPTION]... [PORT]\n"
+"Usage: %s [OPTION]... [HOST:][PORT]\n"
 "Listen for incoming httptunnel connections at PORT (default port is %d).\n"
 "When a connection is made, I/O is redirected to the destination specified\n"
 "by the --device, --forward-port or --stdin-stdout switch.\n"