Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zone-mta

Package Overview
Dependencies
Maintainers
1
Versions
334
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zone-mta - npm Package Compare versions

Comparing version 0.1.0-alpha.23 to 0.1.0-alpha.24

21

lib/iptools.js

@@ -7,2 +7,4 @@ 'use strict';

const nameservers = [].concat(config.nameservers || []);
const os = require('os');
const localAddresses = returnLocalAddresses(os.networkInterfaces());

@@ -24,2 +26,4 @@ // set the nameservers to use for resolving

module.exports.isLocal = address => localAddresses.has(address);
/**

@@ -155,1 +159,18 @@ * Resolves IP address for a domin name

};
function returnLocalAddresses(interfaces) {
let addresses = new Set();
Object.keys(interfaces || {}).forEach(key => {
let iface = interfaces[key];
if (!iface) {
return;
}
[].concat(iface || []).forEach(addr => {
if (addr && addr.address) {
addresses.add(addr.address);
}
});
});
return addresses;
}

1

lib/sender.js

@@ -247,2 +247,3 @@ 'use strict';

}
ipList.filter(ip => !iptools.isLocal(ip));
if (!ipList.length) {

@@ -249,0 +250,0 @@ log.silly('Sender/' + this.zone.name + '/' + process.pid, 'Could not resolve A/AAAA for %s', exchange.exchange);

2

package.json
{
"name": "zone-mta",
"private": false,
"version": "0.1.0-alpha.23",
"version": "0.1.0-alpha.24",
"description": "Tiny outbound MTA",

@@ -6,0 +6,0 @@ "main": "app.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc