Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-14 01:39:26 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-14 01:39:26 +0300
commite838b926cce68ad37dd064d3543140ce74bd3948 (patch)
tree7748f148aa0e297059dbec8e4a378f41292251ff /plugins/x2go
parent69ec5876e561f7905986952a18228900226f2186 (diff)
Adding X2Go Audit trace
Diffstat (limited to 'plugins/x2go')
-rw-r--r--plugins/x2go/x2go_plugin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/x2go/x2go_plugin.c b/plugins/x2go/x2go_plugin.c
index ae3a57c07..fcd2f1a7c 100644
--- a/plugins/x2go/x2go_plugin.c
+++ b/plugins/x2go/x2go_plugin.c
@@ -2566,9 +2566,23 @@ static GList* rmplugin_x2go_populate_available_features_list()
static void rmplugin_x2go_on_plug_added(GtkSocket *socket, RemminaProtocolWidget *gp)
{
TRACE_CALL(__func__);
+
+ gchar *server;
+ gint port;
+
RemminaPluginX2GoData *gpdata = GET_PLUGIN_DATA(gp);
REMMINA_PLUGIN_DEBUG("Socket %d", gpdata->socket_id);
rm_plugin_service->protocol_plugin_signal_connection_opened(gp);
+
+ RemminaFile *remminafile = rm_plugin_service->protocol_plugin_get_file(gp);
+ rm_plugin_service->get_server_port(rm_plugin_service->file_get_string(remminafile, "server"),
+ 22,
+ &server,
+ &port);
+
+ REMMINA_PLUGIN_AUDIT(_("Connected to %s:%d via X2Go"), server, port);
+ g_free(server), server = NULL;
+
return;
}