Skip to content

Commit

Permalink
fix loop (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
analogic authored and msimerson committed Jan 28, 2020
1 parent 3cd9214 commit b4eed14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.13 - 2020-01-28

- properly continue loop when one of database file missing

## 1.0.12 - 2019-11-10

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exports.load_dbs = async function () {
const dbPath = path.join(dbdir, `GeoLite2-${ucFirst(db)}.mmdb`);
if (!fs.existsSync(dbPath)) {
plugin.logdebug(`missing DB ${dbPath}`)
return;
continue;
}

plugin[`${db}Lookup`] = await plugin.maxmind.open(dbPath, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haraka-plugin-geoip",
"version": "1.0.12",
"version": "1.0.13",
"description": "provide geographic information about mail senders.",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit b4eed14

Please sign in to comment.