Replying to myself after looking at the code ;)
Seems ip address gets overwritten with port number while formatting the ip_port string.
Maybe fix it with something like attached patch.
-Jan
On Tue, 6 Aug 2024 21:37:43 +0300
Jan Kämpe <jkampe68_at_gmail.com> wrote:
> The clientip_clientport output seem incorrect in s6-socklog output when
> using "-i ipport" option.
> Example to reproduce; run
> $ s6-socklog -i 192.168.21.1:10514
>
> Then send test syslog message to s6-socklog listening on the UDP port
> (here using "logger" on x86_64 debian linux)
> $ logger -n 192.168.21.1 -P 10514 "Sample log message"
>
> The (start of) s6-socklog produced log line "clientip_clientport" looks
> (usually) something like this:
> 5511368.21.1_: user.notice:
>
> Can anyone else try to re-produce/confirm?
>
> -J
Received on Thu Aug 08 2024 - 22:22:13 CEST