Skip to content

Commit

Permalink
Merge pull request #2509 from uProxy/soycode-simplesocksnode
Browse files Browse the repository at this point in the history
Soycode simplesocksnode
  • Loading branch information
soycode authored Jun 27, 2016
2 parents 4595dd7 + 97025c1 commit f78c18e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,15 @@ gruntConfig = {
pathsFromDevBuild: ['lib/simple-socks', 'lib/churn-pipe', 'lib/loggingprovider']
pathsFromThirdPartyBuild: ['freedom-port-control']
localDestPath: 'lib/samples/simple-socks-firefoxapp/data/'
libsForSimpleSocksNode:
Rule.copyLibs
npmLibNames: ['freedom-for-node']
pathsFromDevBuild: ['lib/simple-socks', 'lib/churn-pipe', 'lib/loggingprovider']
pathsFromThirdPartyBuild: [
'uproxy-obfuscators'
'freedom-port-control'
]
localDestPath: 'lib/samples/simple-socks-node/'

libsForSimpleChatChromeApp:
Rule.copyLibs
Expand Down Expand Up @@ -1068,6 +1077,7 @@ taskManager.add 'simpleSocks', [
'browserify:simpleSocksFreedomModule'
'copy:libsForSimpleSocksChromeApp'
'copy:libsForSimpleSocksFirefoxApp'
'copy:libsForSimpleSocksNode'
]

taskManager.add 'uprobe', [
Expand Down
10 changes: 10 additions & 0 deletions src/lib/samples/simple-socks-node/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var freedom = require('freedom-for-node');

freedom.freedom('./lib/simple-socks/freedom-module.json', {
'logger': './lib/loggingprovider/freedom-module.json',
'debug': 'debug'
}).then(function(moduleFactory) {
moduleFactory();
}, function(e) {
console.error('could not load freedomjs module: ' + e.message);
});

0 comments on commit f78c18e

Please sign in to comment.