mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-27 19:25:27 +03:00
Merge pull request #834 from nclsHart/webui-public-ip-address
[Web UI] Add public IP address
This commit is contained in:
commit
0fd8567d33
@ -1 +1 @@
|
||||
- <span class="title">IP</span> <span>{{ statsIp.address }}/{{ statsIp.maskCidr }}</span>
|
||||
- <span class="title">IP</span> <span>{{ statsIp.address }}/{{ statsIp.maskCidr }}</span> <span class="title">Pub</span> <span>{{ statsIp.publicAddress }}</span>
|
||||
|
@ -5,13 +5,15 @@ glancesApp.service('GlancesPluginIp', function() {
|
||||
this.gateway = null;
|
||||
this.mask = null;
|
||||
this.maskCidr = null;
|
||||
this.publicAddress = null;
|
||||
|
||||
this.setData = function(data, views) {
|
||||
data = data[_pluginName];
|
||||
|
||||
this.address = data['address'];
|
||||
this.gateway = data['gateway'];
|
||||
this.mask = data['mask'];
|
||||
this.maskCidr = data['mask_cidr'];
|
||||
this.address = data.address;
|
||||
this.gateway = data.gateway;
|
||||
this.mask = data.mask;
|
||||
this.maskCidr = data.mask_cidr;
|
||||
this.publicAddress = data.public_address
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user