From b0d029baf34334c4307a625efbaa195674b995d7 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 9 Jan 2018 17:30:05 +0000 Subject: [PATCH] Don't load public IP address if module disabled --- glances/plugins/glances_ip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glances/plugins/glances_ip.py b/glances/plugins/glances_ip.py index 927471fc..bf05661a 100644 --- a/glances/plugins/glances_ip.py +++ b/glances/plugins/glances_ip.py @@ -65,7 +65,8 @@ class Plugin(GlancesPlugin): self.display_curse = True # Get the public IP address once - self.public_address = PublicIpAddress().get() + if not self.is_disable(): + self.public_address = PublicIpAddress().get() # Init the stats self.reset()