Skip to content

Commit f78c18e

Browse files
author
soycode
authored
Merge pull request #2509 from uProxy/soycode-simplesocksnode
Soycode simplesocksnode
2 parents 4595dd7 + 97025c1 commit f78c18e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Gruntfile.coffee

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,15 @@ gruntConfig = {
692692
pathsFromDevBuild: ['lib/simple-socks', 'lib/churn-pipe', 'lib/loggingprovider']
693693
pathsFromThirdPartyBuild: ['freedom-port-control']
694694
localDestPath: 'lib/samples/simple-socks-firefoxapp/data/'
695+
libsForSimpleSocksNode:
696+
Rule.copyLibs
697+
npmLibNames: ['freedom-for-node']
698+
pathsFromDevBuild: ['lib/simple-socks', 'lib/churn-pipe', 'lib/loggingprovider']
699+
pathsFromThirdPartyBuild: [
700+
'uproxy-obfuscators'
701+
'freedom-port-control'
702+
]
703+
localDestPath: 'lib/samples/simple-socks-node/'
695704

696705
libsForSimpleChatChromeApp:
697706
Rule.copyLibs
@@ -1068,6 +1077,7 @@ taskManager.add 'simpleSocks', [
10681077
'browserify:simpleSocksFreedomModule'
10691078
'copy:libsForSimpleSocksChromeApp'
10701079
'copy:libsForSimpleSocksFirefoxApp'
1080+
'copy:libsForSimpleSocksNode'
10711081
]
10721082

10731083
taskManager.add 'uprobe', [
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var freedom = require('freedom-for-node');
2+
3+
freedom.freedom('./lib/simple-socks/freedom-module.json', {
4+
'logger': './lib/loggingprovider/freedom-module.json',
5+
'debug': 'debug'
6+
}).then(function(moduleFactory) {
7+
moduleFactory();
8+
}, function(e) {
9+
console.error('could not load freedomjs module: ' + e.message);
10+
});

0 commit comments

Comments
 (0)