Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: 3e70e03fa3
...
compare: 71e2cf13e9
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/natman.js
  2. +1 −1  package.json
View
6 lib/natman.js
@@ -43,7 +43,6 @@ Nat.prototype.map = function (options, callback) {
public: options.public,
ttl: client === self.clients.upnp ? 0 : options.ttl
};
-
app.log.info('Connected to WAN address: '.green +
external.magenta)
app.log.warn('Mapping '.yellow + external.magenta +
@@ -70,7 +69,8 @@ Nat.prototype.map = function (options, callback) {
options.private.toString().magenta);
}
app.log.info('NAT established.'.green);
- app.log.info('Press CTRL-C to stop the NAT...')
+ app.log.warn('To stop forwarding, you may have to restart any exposed services'.yellow);
+ app.log.info('Press CTRL-C to stop the NAT...');
process.once('SIGINT', function() {
client.portUnmapping(portInfo, function() {
@@ -107,7 +107,7 @@ Nat.prototype.map = function (options, callback) {
if (typeof external === 'string') {
onConnect(client, external);
} else {
- onConnect(client, external.ip.join(''));
+ onConnect(client, external.ip.join('.'));
}
});
});
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "natman",
- "version": "0.0.1",
+ "version": "0.0.2",
"description": "Forward public external ports to internal local area network ports without touching your router.",
"main": "./lib/natman.js",
"dependencies": {

No commit comments for this range

Something went wrong with that request. Please try again.