From 62be16442ca4957374028894d5384f1f23037875 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 8 May 2024 11:51:00 -0400 Subject: [PATCH] Fix passive detection of SLP devices (e.g. SMM) A mistake in the python3 port caused passive SLP detection to break. Remedy that mistake. --- confluent_server/confluent/discovery/protocols/slp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/protocols/slp.py b/confluent_server/confluent/discovery/protocols/slp.py index ac332def..30acb475 100644 --- a/confluent_server/confluent/discovery/protocols/slp.py +++ b/confluent_server/confluent/discovery/protocols/slp.py @@ -411,7 +411,7 @@ def query_srvtypes(target): parsed = _parse_slp_header(rs) if parsed: payload = parsed['payload'] - if payload[:2] != '\x00\x00': + if payload[:2] != b'\x00\x00': return stypelen = struct.unpack('!H', bytes(payload[2:4]))[0] stypes = payload[4:4+stypelen].decode('utf-8')