Skip to content

Commit

Permalink
fix the type of the socat tunnel interface
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio14 committed Jun 23, 2016
1 parent 0eec878 commit c8b62cf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/net_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ var Q = require("q");



var utils = require('./utility')
var utility = new utils





Expand Down Expand Up @@ -117,8 +121,11 @@ net_utils.prototype.activateBoardNetwork = function(board, res, restore){

//NEW-net
//socat -d -d TCP:localhost:$PORT,reuseaddr,forever,interval=10 TUN,tun-name=$TUNNAME,up &
var servSocat = spawn('socat',['-d','-d','TCP:localhost:'+socatPort+',reuseaddr,forever,interval=10','TUN:'+socatServAddr+'/31,tun-name=soc'+socatPort+',up']);
logger.info('[NETWORK] --> SOCAT COMMAND: socat -d -d TCP:localhost:'+socatPort+',reuseaddr,forever,interval=10 TUN:'+socatServAddr+'/31,tun-name=soc'+socatPort+',up');

var servSocat = utility.execute('socat -d -d TCP:localhost:'+socatPort+',reuseaddr,forever,interval=10 TUN:'+socatServAddr+'/31,tun-name=soc'+socatPort+',tun-type=tap,up','[NETWORK] --> SOCAT');

//var servSocat = spawn('socat',['-d','-d','TCP:localhost:'+socatPort+',reuseaddr,forever,interval=10','TUN:'+socatServAddr+'/31,tun-name=soc'+socatPort+', tun-type=tap,up']);
//logger.info('[NETWORK] --> SOCAT COMMAND: socat -d -d TCP:localhost:'+socatPort+',reuseaddr,forever,interval=10 TUN:'+socatServAddr+'/31,tun-name=soc'+socatPort+',tun-type=tap,up');

//--------------------------------------------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit c8b62cf

Please sign in to comment.