Force IPv4 when needed
Check if the server address passed from the DNS resolver to the connection manager is IPv4 or IPv6, and set the libwebsockets flags to force one or the other.
Edited by Nikola Hardi
Check if the server address passed from the DNS resolver to the connection manager is IPv4 or IPv6, and set the libwebsockets flags to force one or the other.