AW: AW: AW: AW: Read Client Hostname

Matthias Mandlmeier matthias.mandlmeier at online.de
Mon Mar 7 08:32:49 PST 2016


I used this version from gitlab https://gitlab.com/ocserv/ocserv.

Regards

Matthias

-----Ursprüngliche Nachricht-----
Von: Nikos Mavrogiannopoulos [mailto:n.mavrogiannopoulos at gmail.com] 
Gesendet: Montag, 7. März 2016 09:32
An: Matthias Mandlmeier <matthias.mandlmeier at online.de>
Cc: openconnect-devel <openconnect-devel at lists.infradead.org>
Betreff: Re: AW: AW: AW: Read Client Hostname

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