From d34d3b7a662ab2098257af48ff15eef025e2e243 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Fri, 8 Aug 2025 02:58:58 +0200 Subject: [PATCH 1/2] refs #2608: Fix: avoid crash in _clientip when ip output includes empty entries --- ogclient/lib/python3/ProtocolLib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ogclient/lib/python3/ProtocolLib.py b/ogclient/lib/python3/ProtocolLib.py index 59ce192..00dfb76 100644 --- a/ogclient/lib/python3/ProtocolLib.py +++ b/ogclient/lib/python3/ProtocolLib.py @@ -241,6 +241,8 @@ def _clientip(): ipasj = json.loads (ipas) addresses = [] for e in ipasj: + if not isinstance(e, dict): continue + if 'ifname' not in e: continue if 'lo' == e['ifname']: continue if 'addr_info' not in e: continue addrs = e['addr_info'] -- 2.40.1 From c6207a3dee805c4f2f15b752d4f6992ef2ebb73f Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Fri, 8 Aug 2025 10:11:08 +0200 Subject: [PATCH 2/2] refs #2608 add changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c822e9..be09085 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.3] - 2025-08-08 + +### Fixed + +- Fix parsing of the output of '/bin/ip -json' + ## [1.1.2] - 2025-07-31 ### Changed -- 2.40.1