Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broadcast T5313: UDP Broadcast Broken #2055

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions src/conf_mode/bcast_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def verify(relay):
if isinstance(config.get('interface', []), str):
config['interface'] = [ config['interface'] ]
# Relaying data without two interface is kinda senseless ...
if len(config.get('interface', [])) < 2:
raise ConfigError('At least two interfaces are required for udp broadcast relay "{instance}"')
if len(config.get('interface', [])) < 2 or len(config.get('interface', [])) > 2:
raise ConfigError('Only two interfaces are required for udp broadcast relay "{instance}"')

for interface in config.get('interface', []):
if interface not in interfaces():
Expand Down
Loading