AW: AW: AW: Read Client Hostname
Nikos Mavrogiannopoulos
n.mavrogiannopoulos at gmail.com
Mon Mar 7 00:32:14 PST 2016
On Sun, Mar 6, 2016 at 1:49 PM, Matthias Mandlmeier
<matthias.mandlmeier at online.de> wrote:
> I tried now to get the hostname for output in the Debug Log but the variable is always empty but I don't know if my code is correct.
>
> I added a line mslog(s, proc, LOG_DEBUG, "Hostname '%s'", tmsg->hostname); after the if (tmsg->hostname) block but in the log I always get
> main: IP:Port Hostname '' or main: IP:Port Hostname '(null)' and some lines after that then I will see X-CSTP-Hostname: value.
>
> I added the code in the main-worker-cmd.c
Which version of ocserv did you modify? That works only on git master branch.
regards,
Nikos
More information about the openconnect-devel
mailing list