def METHOD_NAME(standby_host, is_hba_hostnames=False):
    standby_ips = gp.IfAddrs.list_addrs(standby_host)
    current_user = unix.UserId.local('get userid')
    standby_pg_hba_info = ['# standby coordinator host ip addresses\n']
    for ip in standby_ips:
        if not is_hba_hostnames:
            cidr_suffix = '/128' if ':' in ip else '/32' # MPP-15889
            address = ip + cidr_suffix
        else:
            address = standby_host
        standby_pg_hba_info.append('host\tall\t%s\t%s\ttrust\n' % (current_user, address))
    return standby_pg_hba_info