From 167b6d9335077b0a75e1f9d7a892843ae9df42ef Mon Sep 17 00:00:00 2001 From: flatsiedatsie Date: Mon, 21 Mar 2022 23:58:07 +0100 Subject: [PATCH] Add files via upload --- manifest.json | 2 +- pkg/presence_adapter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 3912268..02b6ac7 100644 --- a/manifest.json +++ b/manifest.json @@ -57,5 +57,5 @@ } }, "short_name": "Network pres", - "version": "1.3.5" + "version": "1.3.6" } \ No newline at end of file diff --git a/pkg/presence_adapter.py b/pkg/presence_adapter.py index d16f2a5..c335833 100644 --- a/pkg/presence_adapter.py +++ b/pkg/presence_adapter.py @@ -1093,7 +1093,7 @@ def arpa(self): if self.DEBUG: print("spotted IP address in nbtscan_results, so extracting name form there") try: - for nbtscan_line in nbtscan_results.split('\n'): + for nbtscan_line in nbtscan_results.stdout.split('\n'): if ip_address in nbtscan_line: #line = line.replace("#PRE","") nbtscan_line = nbtscan_line.rstrip() @@ -1165,7 +1165,7 @@ def arpa(self): if self.DEBUG: print("spotted IP address in nbtscan_results, so extracting name form there") try: - for nbtscan_line in nbtscan_results.split('\n'): + for nbtscan_line in nbtscan_results.stdout.split('\n'): if ip_address in nbtscan_line: #line = line.replace("#PRE","") nbtscan_line = nbtscan_line.rstrip()