AW: AW: AW: AW: Read Client Hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux