File: 0027-Report-remote-host-port-in-tunnel-disconnect-message.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 (36 lines) | stat: -rw-r--r-- 916 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
From: gdm85 <gdm85@users.noreply.github.com>
Date: Sat, 28 Jul 2018 12:45:25 +0200
Subject: Report remote host:port in tunnel disconnect message

Applied-Upstream: commit:6ca2104d52de00bc04152ddf25d9bc8411771782
---
 hts.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hts.c b/hts.c
index b0ae68b..bef376a 100644
--- a/hts.c
+++ b/hts.c
@@ -520,7 +520,7 @@ main (int argc, char **argv)
 	  int timeout;
 	  time_t t;
 	  int n;
-      
+
 	  pollfd[0].fd = fd;
 	  pollfd[0].events = POLLIN;
 	  pollfd[1].fd = tunnel_pollin_fd (tunnel);
@@ -564,11 +564,11 @@ main (int argc, char **argv)
           close (fd);
 	}
       tunnel_close (tunnel);
-      log_notice ("disconnected from FIXME:hostname:port");
+      log_notice ("disconnected from %s:%s", arg.forward_host, arg.forward_port);
     }
 
   log_debug ("destroying tunnel");
   tunnel_destroy (tunnel);
- 
+
   log_exit (0);
 }