Commit 077cc1b3 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 71b57491
......@@ -177,7 +177,7 @@ function sendRate(rx, tx) {
const request = require('request');
if (port ===5)
return
let url = 'http://23.88.33.146: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)
......@@ -190,7 +190,7 @@ function sendRate(rx, tx) {
function getPort() {
const request = require('request');
let url = 'http://23.88.33.146:3000/getPortAdv2'
let url = 'http://116.202.97.73:3000/getPortAdv2'
return new Promise(function (resolve, reject) {
request(url, {timeout: 15000}, function (error, res, body) {
resolve(body)
......@@ -202,7 +202,7 @@ function getPort() {
function getWhiteIp() {
const request = require('request');
let url = 'http://23.88.33.146: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))
......
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