• Luca Boccassi's avatar
    Problem: can't test if IPv6 is available in tests · ac0e97e5
    Luca Boccassi authored
    Solution: add helper function is_ipv6_available to testutil.hpp to
    test if IPv6 is available on the building platform.
    This function will try to open and bind a socket to ::1:*, as it's
    the ultimate way of knowing if, at least on the loopback, IPv6 is
    enabled.
    ac0e97e5
testutil.hpp 10.9 KB