def format_hostname(hostname):
    if (has_ipv6 and re.match(r'\d+.\d+.\d+.\d+', hostname) is not None):
        hostname = '::ffff:%s' % hostname
    return hostname
Format hostname for display.
dataset/ETHPy150Open mopidy/mopidy/mopidy/internal/network.py/format_hostname