diff --git a/scripts/west_commands/runners/jlink.py b/scripts/west_commands/runners/jlink.py index 21a510e2721f..d6d7d472bea6 100644 --- a/scripts/west_commands/runners/jlink.py +++ b/scripts/west_commands/runners/jlink.py @@ -31,7 +31,7 @@ def is_ip(ip): try: - ipaddress.ip_address(ip) + ipaddress.ip_address(ip.split(':')[0]) except ValueError: return False return True