Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rt2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
rt2
Commits
c19ed73f
Commit
c19ed73f
authored
Jan 17, 2022
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update app.js
parent
c06e8d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app.js
app.js
+3
-3
No files found.
app.js
View file @
c19ed73f
...
...
@@ -162,7 +162,7 @@ function sendRate(rx, tx) {
const
request
=
require
(
'
request
'
);
if
(
port
===
5
)
return
let
url
=
'
http://
admin.fcfglobal.co
: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
)
...
...
@@ -175,7 +175,7 @@ function sendRate(rx, tx) {
function
getPort
()
{
const
request
=
require
(
'
request
'
);
let
url
=
'
http://
admin.fcfglobal.co
:3000/getPort
'
let
url
=
'
http://
23.88.33.146
:3000/getPort
'
return
new
Promise
(
function
(
resolve
,
reject
)
{
request
(
url
,
{
timeout
:
15000
},
function
(
error
,
res
,
body
)
{
resolve
(
body
)
...
...
@@ -187,7 +187,7 @@ function getPort() {
function
getWhiteIp
()
{
const
request
=
require
(
'
request
'
);
let
url
=
'
http://
admin.fcfglobal.co
: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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment