mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-01 22:47:01 +00:00
Update ssloader.js
This commit is contained in:
parent
e6f24e40d3
commit
73fe0e8402
11
ssloader.js
11
ssloader.js
|
@ -1,14 +1,23 @@
|
|||
////////////////////////////////////////////////////////////////////////
|
||||
// Socksloader
|
||||
// SSloader
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var SS = require("lib/shadowsocks");
|
||||
var WINTAP = require("lib/wintap");
|
||||
var SYS = require("lib/system");
|
||||
|
||||
exports.main = function() {
|
||||
console.log("Connecting to shadowsocks...");
|
||||
var proxyport = SS.connect();
|
||||
console.log(proxyport);
|
||||
|
||||
console.log("Gethering informations of network interfaces");
|
||||
var inets = SYS.getNetworkInterfaces();
|
||||
for(var i in inets) {
|
||||
console.log(inets[i].Caption);
|
||||
console.log(" > " + inets[i].IPAddresses.join(","));
|
||||
console.log(" > " + inets[i].MACAddress);
|
||||
}
|
||||
|
||||
console.log("Installing new WindowsTAP...");
|
||||
console.log(WINTAP.query("tap0901"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user