mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 08:33:22 +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.gateway = null;
|
||||||
this.mask = null;
|
this.mask = null;
|
||||||
this.maskCidr = null;
|
this.maskCidr = null;
|
||||||
|
this.publicAddress = null;
|
||||||
|
|
||||||
this.setData = function(data, views) {
|
this.setData = function(data, views) {
|
||||||
data = data[_pluginName];
|
data = data[_pluginName];
|
||||||
|
|
||||||
this.address = data['address'];
|
this.address = data.address;
|
||||||
this.gateway = data['gateway'];
|
this.gateway = data.gateway;
|
||||||
this.mask = data['mask'];
|
this.mask = data.mask;
|
||||||
this.maskCidr = data['mask_cidr'];
|
this.maskCidr = data.mask_cidr;
|
||||||
|
this.publicAddress = data.public_address
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user