Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
mirror-selector
Advanced tools
Find fastest mirror to establish a TCP connection
This lib find the fastest link to a server.
You want to find the closest mirror to connect to it. See test file for a code sample that find the closest debian deb mirror server.
You have a database in your lan, that you can access with a VPN. But you do not want to use the VPN when your a connected to the same lan. Give thw VPN IP and the LAN IP to this API and use the fastest link to access the database.
My redis database can be access as localhost, local network, or VPN.
import getFastest from '.';
async code() {
const server = await getFastest([
{host: '127.0.0.1', port: 6379},
{host: '192.168.1.4', port: 6379},
{host: '10.0.10.4', port: 6379}\
], { timeout: 2000 });
console.log('best link is: ', server);
}
This call will return me a localhost access if I'm on the server, a local access if I'm on the rigth network, a VPN access if I'm out of office, and off course will throw an Error if I have no access to my redis.
FAQs
Find the fastest working route to a TCP service.
We found that mirror-selector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.