Skip to content

Commit

Permalink
[fix] default port
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Sep 15, 2013
1 parent 18341d5 commit d166354
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 193 deletions.
5 changes: 4 additions & 1 deletion lib/caronte/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ var common = exports;
*/

common.setupOutgoing = function(outgoing, options, req, forward) {
['host', 'hostname', 'port', 'socketPath', 'agent'].forEach(
outgoing.port = options[forward || 'target'].port ||
(~['https:', 'wss:'].indexOf(options[forward || 'target'].protocol) ? 443 : 80);

['host', 'hostname', 'socketPath', 'agent'].forEach(
function(e) { outgoing[e] = options[forward || 'target'][e]; }
);

Expand Down
88 changes: 0 additions & 88 deletions lib/caronte/streams/forward.js

This file was deleted.

104 changes: 0 additions & 104 deletions lib/caronte/streams/proxy.js

This file was deleted.

0 comments on commit d166354

Please sign in to comment.