summaryrefslogtreecommitdiff
path: root/src/fqterm/fqterm_frame.cpp
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-05-21 10:31:44 +0800
committerIru Cai <mytbk920423@gmail.com>2018-05-21 10:32:08 +0800
commit0563363cf922141eccd4268f6eb03f885835f65e (patch)
tree1d81f6169d1c6072e858c4143b5715b029e533a9 /src/fqterm/fqterm_frame.cpp
parentcced25ca036d5ac33e0d1f19ccbc7a12ce1f95db (diff)
downloadfqterm-0563363cf922141eccd4268f6eb03f885835f65e.tar.xz
conn_info: add host and port
Diffstat (limited to 'src/fqterm/fqterm_frame.cpp')
-rw-r--r--src/fqterm/fqterm_frame.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fqterm/fqterm_frame.cpp b/src/fqterm/fqterm_frame.cpp
index 95227c4..eef3558 100644
--- a/src/fqterm/fqterm_frame.cpp
+++ b/src/fqterm/fqterm_frame.cpp
@@ -726,6 +726,8 @@ void FQTermFrame::conn_info()
switch (info->proto) {
case PROTO_TELNET:
txt = "protocol: Telnet";
+ txt.append(QString("\nHost: %1\nPort: %2")
+ .arg(info->hostname).arg(info->port));
break;
case PROTO_LOCAL:
txt = "protocol: Local";
@@ -733,6 +735,8 @@ void FQTermFrame::conn_info()
case PROTO_SSH:
txt = QString("protocol: SSH %1")
.arg(info->ssh_proto_info.proto_version);
+ txt.append(QString("\nHost: %1\nPort: %2")
+ .arg(info->hostname).arg(info->port));
if (info->ssh_proto_info.proto_version == 2)
txt.append(ssh2_info(info));
break;