未验证 提交 b0d029ba 编写于 作者: A Alyssa Ross

Don't load public IP address if module disabled

上级 3b0115c2
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册