Commit Graph

4 Commits

Author SHA1 Message Date
940af5a896
Get the actual local address, not 0.0.0.0
The sockets are bound on all interfaces using INADDR_ANY, so getsockname
always return 0.0.0.0.
The actual address can be obtained from the destination address of the
received IP packet using the socket ancillary data.
2023-06-18 02:04:57 +02:00
c7f3f9df4e
Fix incorrect logical expression 2023-06-18 02:04:57 +02:00
533868b21e
Fix standard C++ 11 issues 2023-06-18 02:04:57 +02:00
6a18c72b0c
initial commit 2023-06-18 02:04:56 +02:00