def value_list_to_comma(ini_key, values):
    """
    Returns a comma separated list for use as a value in a WireGuard config file
    """

    if isinstance(values, (list, set, tuple,)):
        # Need to force to string, because the values are probably not simple strings
        values = ','.join(str(val) for val in values)

    return f'{ini_key} = {values}'