summaryrefslogtreecommitdiff
path: root/src/fqterm/fqterm_frame.cpp
diff options
context:
space:
mode:
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;