def getFilterStr(filters):
    """Return the given 'filters' dict as a list of
    '+<addr>' | '-<addr>' filter-strings
    """
    if not len(filters):
        return []
    if '/*' in list(filters.keys()):
        if filters['/*']:
            out = ['+/*']
        else:
            out = ['-/*']
    elif False in list(filters.values()):
        out = ['+/*']
    else:
        out = ['-/*']
    for addr, bool in list(filters.items()):
        if addr == '/*':
            continue
        if bool:
            out.append('+%s' % addr)
        else:
            out.append('-%s' % addr)
    return out
