Make sysinfo page show detected ip

This commit is contained in:
Girish Ramakrishnan
2019-11-07 10:41:24 -08:00
parent c26597cf02
commit 2e6e320bd9
3 changed files with 20 additions and 2 deletions
+9
View File
@@ -658,6 +658,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.getServerIp = function (callback) {
get('/api/v1/cloudron/server_ip', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data.ip);
});
};
Client.prototype.getSysinfoConfig = function (callback) {
get('/api/v1/settings/sysinfo_config', null, function (error, data, status) {
if (error) return callback(error);