Don't load public IP address if module disabled

This commit is contained in:
Alyssa Ross 2018-01-09 17:30:05 +00:00
parent 3b0115c2ff
commit b0d029baf3
No known key found for this signature in database
GPG Key ID: 6CF064D149E3ABDB

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