Merge pull request #1216 from alyssais/ip_disable

Don't load public IP address if module disabled
This commit is contained in:
Nicolas Hennion 2018-01-09 18:49:21 +01:00 committed by GitHub
commit 5cdda5d86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()