From 45fdb3334025721ada6071722991ecf00938c4a7 Mon Sep 17 00:00:00 2001 From: cuongdt1994 <63875204+cuongdt1994@users.noreply.github.com> Date: Sun, 25 Jun 2023 13:15:38 +0700 Subject: [PATCH] broadcast T5313: UDP Broadcast Broken When set more 2 interface, service udp broadcast not running and have error. --- src/conf_mode/bcast_relay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf_mode/bcast_relay.py b/src/conf_mode/bcast_relay.py index 39a2971ceb..14f4853eb2 100755 --- a/src/conf_mode/bcast_relay.py +++ b/src/conf_mode/bcast_relay.py @@ -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():