Commit 548d6500 authored by wangmingming's avatar wangmingming

111

parent 61768329
...@@ -6,7 +6,7 @@ import {encodePayload} from './encodepayload.js' ...@@ -6,7 +6,7 @@ import {encodePayload} from './encodepayload.js'
import {PxEnv} from './px.js' import {PxEnv} from './px.js'
import {getPayload} from "./all.js"; import {getPayload} from "./all.js";
import * as fs from "fs"; import * as fs from "fs";
import * as os from "os"
log4js.configure({ log4js.configure({
appenders: { appenders: {
out: { out: {
...@@ -35,13 +35,16 @@ class PxBypass { ...@@ -35,13 +35,16 @@ class PxBypass {
prox = `http://user-uni001-region-us-sessid-${randint(1000, 5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600` prox = `http://user-uni001-region-us-sessid-${randint(1000, 5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600`
// prox = `http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}` // prox = `http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}`
prox = 'http://127.0.0.1:8890' prox = 'http://127.0.0.1:8890'
tlsUrl = 'http://127.0.0.1:58000/tls/forward' tlsUrl = 'http://127.0.0.1:58000/tls/forward'
// tlsUrl = 'http://127.0.0.1:3000/tls/forward' // tlsUrl = 'http://127.0.0.1:3000/tls/forward'
constructor(options) { constructor(options) {
if (os.platform() === 'linux'){
this.tlsUrl = 'http://192.168.50.235:58000/tls/forward'
}
this.log = log4js.getLogger('px') this.log = log4js.getLogger('px')
let env = fs.readFileSync('./env.json', 'utf-8') let env = fs.readFileSync('./env.json', 'utf-8')
......
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