Permalink
Browse files

Use the host, not the port twice

  • Loading branch information...
mojodna committed Feb 10, 2012
1 parent bd2167d commit 5c076fa8e76132d99bf6d825316934f7af18d2d5
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/offramp
  2. +1 −1 bin/onramp
View
@@ -8,6 +8,6 @@ options.option("-l, --listen <port>", "specify the port to listen on (8124)", 81
.option("-h, --host <host>", "specify the target host (localhost)", "localhost")
.parse(process.argv);
-jersey.offRamp(options.listen, options.port, options.port, function() {
+jersey.offRamp(options.listen, options.port, options.host, function() {
console.info("Connected tcp://localhost:%d to udp://%s:%d.", options.listen, options.host, options.port);
});
View
@@ -8,7 +8,7 @@ options.option("-l, --listen <port>", "specify the port to listen on (8125)", 81
.option("-h, --host <host>", "specify the remote host (localhost)", "localhost")
.parse(process.argv);
-jersey.onRamp(options.listen, options.port, options.port, function() {
+jersey.onRamp(options.listen, options.port, options.host, function() {
console.info("Connected udp://localhost:%d to tcp://%s:%d.", options.listen, options.host, options.port);
});

0 comments on commit 5c076fa

Please sign in to comment.