mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-27 19:04:50 +03:00
Don't load public IP address if module disabled
This commit is contained in:
parent
3b0115c2ff
commit
b0d029baf3
@ -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