mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
[Web UI] Add public IP address
This commit is contained in:
parent
3d59773a5e
commit
c72a593a9b
@ -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