Commit 389d8359 authored by Administrator's avatar Administrator

Update app.js

parent f5ef2c68
......@@ -50,7 +50,7 @@ async function addBaship(ip) {
async function reboot() {
// return await shell.exec(' sudo reboot ').stderr;
// return await shell.exec(' sudo reboot ').stderr;
}
......@@ -154,7 +154,7 @@ async function calculateSpeed() {
function sendRate(rx, tx) {
const request = require('request');
let url = 'http://admin.fcfglobal.co:3000/rateWithPort/' + rx + '/' + tx + '/' + port
let url = 'http://116.202.97.73:3000/rateWithPort/' + rx + '/' + tx + '/' + port
return new Promise(function (resolve, reject) {
request(url, {timeout: 6000}, function (error, res, body) {
resolve(true)
......@@ -167,7 +167,7 @@ function sendRate(rx, tx) {
function getPort() {
const request = require('request');
let url = 'http://admin.fcfglobal.co:3000/amzPort'
let url = 'http://116.202.97.73:3000/amzPort'
return new Promise(function (resolve, reject) {
request(url, {timeout: 15000}, function (error, res, body) {
resolve(body)
......@@ -179,7 +179,7 @@ function getPort() {
function getGenerationStatus() {
const request = require('request');
let url = 'http://admin.fcfglobal.co:3000/generationStatus'
let url = 'http://116.202.97.73:3000/generationStatus'
return new Promise(function (resolve, reject) {
request(url, {timeout: 15000}, function (error, res, body) {
resolve(body)
......@@ -191,7 +191,7 @@ function getGenerationStatus() {
function getWhiteIp() {
const request = require('request');
let url = 'http://admin.fcfglobal.co:3000/getWhiteIp'
let url = 'http://116.202.97.73:3000/getWhiteIp'
return new Promise(function (resolve, reject) {
request(url, {timeout: 15000}, function (error, res, body) {
resolve(JSON.parse(body))
......@@ -207,4 +207,3 @@ cronSpeed.schedule(' */5 * * * * *', () => {
return calculateSpeed()
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment