summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gweb/gweb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c
index f96d6b2b..dcd5be58 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -764,10 +764,13 @@ static int connect_session_transport(struct web_session *session)
if (sk < 0)
return -EIO;
- if (session->flags & SESSION_FLAG_USE_TLS)
+ if (session->flags & SESSION_FLAG_USE_TLS) {
+ debug(session->web, "using TLS encryption");
session->transport_channel = g_io_channel_gnutls_new(sk);
- else
+ } else {
+ debug(session->web, "no encryption");
session->transport_channel = g_io_channel_unix_new(sk);
+ }
if (session->transport_channel == NULL) {
close(sk);