mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-17 06:41:00 +01:00
We'll want conn_get_src/dst to support other means of retrieving these respective IP addresses, but the functions as they're designed are a bit too restrictive for now. This patch arranges them to have a default error fallback allowing to test different mechanisms. In addition we now make sure the underlying protocol is of type stream before calling the family's get_src/dst as it makes no sense to do that on dgram sockets for example.