mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-27 10:18:49 +03:00
Refactor the `GetIpAddr` function to use `GetNameInfo` for IP address retrieval, enhancing IPv6 compatibility. Optimize the `CopySockAddr` function to correctly handle IPv4 and IPv6 addresses and port information. (Implementation based on mujiansu's work in issue #1988)