Skip to content

Commit

Permalink
Release 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Vladutu committed Sep 9, 2013
1 parent 85b9a88 commit b25b956
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 1.2.2 release

- Removed a debug message when no debug flag is set

## 1.2.1 release

- Fixed bug with selecting wrong domain (if domain is not the 1st)
Expand Down
19 changes: 15 additions & 4 deletions dynroute.js
Expand Up @@ -115,10 +115,12 @@ function searchRecord(ip) {
function updateDns(ip, details) {
var args, oldIps;

utils.debugBlock('updateDns() called', {
ip : ip,
details : details
});
if (opts.debug) {
utils.debugBlock('updateDns() called', {
ip : ip,
details : details
});
}

args = {
HostedZoneId: '/' + details.zoneId,
Expand Down Expand Up @@ -219,6 +221,11 @@ function checkIpUpdate(credentials, configs) {
if (!error && response.statusCode == 200) {
try {
ip = JSON.parse(body.trim()).ip;

if (opts.debug) {
utils.debugBlock('Your IP', ip);
}

// no point in querying Route53 if we know the last ip is correct right?
if (ip !== lastKnownIP) {
searchRecord(ip);
Expand All @@ -233,6 +240,10 @@ function checkIpUpdate(credentials, configs) {
utils.debugBlock('Error getting ip from server', err);
}
}
} else {
if (opts.debug) {
utils.debugBlock('Error getting ip from server', error, response.statusCode);
}
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name" : "dynroute",
"description": "Dynamic DNS for your domain using Amazon Route53",
"version" : "0.1.1",
"version" : "0.1.2",
"homepage" : "http://github.com/alessioalex/dynroute",
"author" : "Alexandru Vladutu <alexandru.vladutu@gmail.com>",
"main" : "./dynroute.js",
Expand Down

0 comments on commit b25b956

Please sign in to comment.