fixed local bind problem for TCP proxying
This commit is contained in:
		
							parent
							
								
									c34b0444c1
								
							
						
					
					
						commit
						d9b20b5aeb
					
				| @ -105,11 +105,11 @@ module.exports.create = function (deps, config) { | ||||
|       var newConnOpts = {}; | ||||
|       ['remote', 'local'].forEach(function (end) { | ||||
|         ['Family', 'Address', 'Port'].forEach(function (name) { | ||||
|           newConnOpts[end+name] = conn[end+name]; | ||||
|           newConnOpts['_'+end+name] = conn[end+name]; | ||||
|         }); | ||||
|       }); | ||||
| 
 | ||||
|       deps.proxy(conn, Object.assign({}, dest, newConnOpts)); | ||||
|       deps.proxy(conn, Object.assign(newConnOpts, dest)); | ||||
|     }; | ||||
|   } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user