Skip to content

Commit 650c745

Browse files
committed
remove iwebpp.com
1 parent 4ca381f commit 650c745

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

bin/forward-proxy

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Please install node-httpp binary in your system exec dir, like /usr/bin/ or /usr/local/bin/
55
//
66
var util = require('util'),
7-
argv = require('optimist').argv,
7+
argv = require('optimist').argv,
88
Proxy = require('../proxy');
99

1010
var help = [
@@ -29,15 +29,15 @@ if (argv.h || argv.help || Object.keys(argv).length === 2) {
2929
return util.puts(help);
3030
}
3131

32-
var http_port = argv.http_port,
33-
socks_port = argv.socks_port,
34-
export_vurl = argv.export_vurl,
32+
var http_port = argv.http_port,
33+
socks_port = argv.socks_port,
34+
export_vurl = argv.export_vurl,
3535
enable_export = argv.enable || argv.enable_export,
36-
turnon_timer = argv.turnon || argv.turnon_timer,
37-
access_local = argv.access || argv.access_local,
38-
secmode = argv.s || argv.secmode,
39-
user = argv.u || argv.user,
40-
usrkey = argv.k || argv.key;
36+
turnon_timer = argv.turnon || argv.turnon_timer,
37+
access_local = argv.access || argv.access_local,
38+
secmode = argv.s || argv.secmode,
39+
user = argv.u || argv.user,
40+
usrkey = argv.k || argv.key;
4141

4242
//
4343
// Check arguments

demo/socksproxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var Proxy = require('../proxy');
22

33
// fill Export service's vURL as options.export
4-
var srv = new Proxy({export: 'https://9f34d25f045b34f1cc7f423e15c2b416.vurl.iwebpp.com:51688/vtoken/1c4e246969340c08'}, function(err, proxy){
4+
var srv = new Proxy({export: 'https://9f34d25f045b34f1cc7f423e15c2b416.vurl.httpp.aiworkspace.com:51688/vtoken/1c4e246969340c08'}, function(err, proxy){
55
if (err || !proxy) {
66
console.log(err+',create proxy failed');
77
return

demo/webproxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var Proxy = require('../proxy');
22

33
// fill Export service's vURL as options.export
4-
var srv = new Proxy({export: 'https://9f34d25f045b34f1cc7f423e15c2b416.vurl.iwebpp.com:51688/vtoken/1c4e246969340c08'}, function(err, proxy){
4+
var srv = new Proxy({export: 'https://9f34d25f045b34f1cc7f423e15c2b416.vurl.httpp.aiworkspace.com:51688/vtoken/1c4e246969340c08'}, function(err, proxy){
55
if (err || !proxy) {
66
console.log(err+',create proxy failed');
77
return

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Tom Zhou <iwebpp@gmail.com>",
33
"name": "forward-proxy",
44
"description": "p2p http forward and socks proxy based on iWebPP.io and Node.js",
5-
"version": "2.1.1",
5+
"version": "3.0.0",
66
"repository": {
77
"type": "git",
88
"url": "git://github.com/InstantWebP2P/node-forward-proxy.git"

proxy.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ var Proxy = module.exports = function(options, fn){
7777
srvinfo: {
7878
timeout: 20,
7979
endpoints: (options && options.endpoints) || [
80-
{ip: 'iwebpp.com', port: 51686},
81-
{ip: 'iwebpp.com', port: 51868}
80+
{ip: 'httpp.aiworkspace.com', port: 51686},
81+
{ip: 'httpp.aiworkspace.com', port: 51868}
8282
],
8383
turn: (options && options.turn) || [
84-
{ip: 'iwebpp.com', agent: 51866, proxy: 51688}
84+
{ip: 'httpp.aiworkspace.com', agent: 51866, proxy: 51688}
8585
]
8686
},
8787

@@ -306,8 +306,8 @@ var Proxy = module.exports = function(options, fn){
306306

307307
// 1.
308308
// match vURL pattern:
309-
// - vhost like http(s)://xxx.vurl.iwebpp.com
310-
// - vpath like http(s)://iwebpp.com"/vurl/xxx"
309+
// - vhost like http(s)://xxx.vurl.httpp.aiworkspace.com
310+
// - vpath like http(s)://httpp.aiworkspace.com"/vurl/xxx"
311311
if (vstrs = req.headers.host.match(vURL.regex_vhost)) {
312312
vurle = vstrs[0];
313313
if (Debug) console.log('proxy for client with vhost:'+vurle);
@@ -611,8 +611,8 @@ var Proxy = module.exports = function(options, fn){
611611

612612
// 1.
613613
// match vURL pattern:
614-
// - vhost like http(s)://xxx.vurl.iwebpp.com
615-
// - vpath like http(s)://iwebpp.com/vurl/xxx"
614+
// - vhost like http(s)://xxx.vurl.httpp.aiworkspace.com
615+
// - vpath like http(s)://httpp.aiworkspace.com/vurl/xxx"
616616
if (vstrs = urle.match(vURL.regex_vhost)) {
617617
vurle = vstrs[0];
618618
if (Debug) console.log('tunnel for client with vhost:'+vurle);

0 commit comments

Comments
 (0)