Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions glob/manager_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,11 @@ async def load_nightly(channel, mode):
return {}

# validate channel - only the channel set by the user is allowed.
get_channel_dict()
config_channel_url = get_config().get('channel_url')
if config_channel_url:
valid_channels.add(config_channel_url)

if channel_url not in valid_channels:
logging.error(f'[ComfyUI-Manager] An invalid channel was used: {channel_url}')
raise InvalidChannel(channel_url)
Expand Down Expand Up @@ -1645,6 +1650,10 @@ def get_channel_dict():
channel_dict[channel_info[0]] = channel_info[1]
valid_channels.add(channel_info[1])

channel_url = get_config().get('channel_url')
if channel_url:
valid_channels.add(channel_url)

return channel_dict


Expand Down