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"
