Skip to content
Snippets Groups Projects
Commit 76d4bd73 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Trigger UPnP on a regular basis

parent ea1cbad5
Branches
Tags v1.3.4
No related merge requests found
...@@ -18,6 +18,7 @@ module.exports = ($scope, $state, BMA) => { ...@@ -18,6 +18,7 @@ module.exports = ($scope, $state, BMA) => {
return co(function *() { return co(function *() {
yield BMA.webmin.server.http.start(); yield BMA.webmin.server.http.start();
yield BMA.webmin.server.services.startAll(); yield BMA.webmin.server.services.startAll();
yield BMA.webmin.server.http.regularUPnP();
$scope.server_started = true; $scope.server_started = true;
}); });
}; };
......
...@@ -125,7 +125,8 @@ module.exports = (angular) => { ...@@ -125,7 +125,8 @@ module.exports = (angular) => {
http: { http: {
start: getResource('/webmin/server/http/start'), start: getResource('/webmin/server/http/start'),
stop: getResource('/webmin/server/http/stop'), stop: getResource('/webmin/server/http/stop'),
openUPnP: getResource('/webmin/server/http/upnp/open') openUPnP: getResource('/webmin/server/http/upnp/open'),
regularUPnP: getResource('/webmin/server/http/upnp/regular')
}, },
services: { services: {
startAll: getResource('/webmin/server/services/start_all'), startAll: getResource('/webmin/server/services/start_all'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment