From b4544a958212ab3a841985f2566c262938b05264 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 3 Jun 2014 17:41:15 +0200 Subject: [PATCH] Send the server version string to client. --- src/worker-vpn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/worker-vpn.c b/src/worker-vpn.c index 5a063122..750b376f 100644 --- a/src/worker-vpn.c +++ b/src/worker-vpn.c @@ -1427,6 +1427,9 @@ static int connect_handler(worker_st * ws) ret = tls_puts(ws->session, "X-CSTP-Version: 1\r\n"); SEND_ERR(ret); + ret = tls_puts(ws->session, "X-Server-Version: "PACKAGE_STRING"\r\n"); + SEND_ERR(ret); + if (req->is_mobile) { ws->config->dpd = ws->config->mobile_dpd; ws->config->idle_timeout = ws->config->mobile_idle_timeout;