-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ap-nimbus-app-manager Release 2.0.0 #10
base: master
Are you sure you want to change the base?
Conversation
kwabenantim
commented
Jun 26, 2024
- Supports Release Ap-Nimbus v2.0.0 ap-nimbus#75
The current "Active LTS" is now Node 20, and Node 18 is currently in "Maintenance" mode. It is probably a good time to upgrade. |
The ip package no longer seems to be in active development.
|
The ip github repository has recently been unarchived again. However, the dependabot alert remains. Currently, app-manager only needs ip to retrieve an address: const ip = require('ip');
return_obj = {
'success': {
'id': simulation_id,
'ip': ip.address()
}
}; This could be replaced with a manual function like: const os = require('os');
function ip_address() {
const interfaces = os.networkInterfaces();
for (const networks of Object.values(interfaces)) {
for (const network of networks) {
if (network.family == 'IPv4' && !network.internal) {
return network.address;
}
}
}
return '127.0.0.1';
}
return_obj = {
'success': {
'id': simulation_id,
'ip': ip_address()
}
}; |
All OK by me |