From 3702b465e563c75db14ec7a1f60a9173bb5a6b40 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 29 May 2022 15:03:02 +0100 Subject: [PATCH] eddn: fssdiscoveryscan: Location cross-check paranoia --- plugins/eddn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/eddn.py b/plugins/eddn.py index 464045b3..abb128ce 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -854,6 +854,12 @@ class EDDN: ####################################################################### # Augmentations ####################################################################### + # In this case should add StarPos, but only if the + # SystemAddress of where we think we are matches. + if this.systemaddress is None or this.systemaddress != entry['SystemAddress']: + logger.warning("SystemAddress isn't current location! Can't add augmentations!") + return 'Wrong System! Missed jump ?' + ret = this.eddn.entry_augment_system_data(entry, system_name, system_starpos) if isinstance(ret, str): return ret