mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-27 10:42:52 +03:00
Merge pull request #1216 from alyssais/ip_disable
Don't load public IP address if module disabled
This commit is contained in:
commit
5cdda5d86b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user