Commit 377ccea6 authored by Administrator's avatar Administrator

Update app.js

parent 389d8359
......@@ -154,7 +154,7 @@ async function calculateSpeed() {
function sendRate(rx, tx) {
const request = require('request');
let url = 'http://116.202.97.73:3000/rateWithPort/' + rx + '/' + tx + '/' + port
let url = 'http://23.88.33.146: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://116.202.97.73:3000/amzPort'
let url = 'http://23.88.33.146: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://116.202.97.73:3000/generationStatus'
let url = 'http://23.88.33.146: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://116.202.97.73:3000/getWhiteIp'
let url = 'http://23.88.33.146:3000/getWhiteIp'
return new Promise(function (resolve, reject) {
request(url, {timeout: 15000}, function (error, res, body) {
resolve(JSON.parse(body))
......
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