Skip to content

Commit

Permalink
fix when it should add apiport to ip to broadcast ipchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Oct 29, 2023
1 parent 81a8fae commit 9301d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZelBack/src/services/fluxNetworkHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@ async function adjustExternalIP(ip) {
return;
}
if (userconfig.initial.ipaddress && v4exact.test(userconfig.initial.ipaddress)) {
const newIP = `${ip}:${userconfig.initial.apiport}`;
const oldIP = `${userconfig.initial.ipaddress}:${userconfig.initial.apiport}`;
const newIP = userconfig.initial.apiport !== 16127 ? `${ip}:${userconfig.initial.apiport}` : ip;
const oldIP = userconfig.initial.apiport !== 16127 ? `${userconfig.initial.ipaddress}:${userconfig.initial.apiport}` : userconfig.initial.ipaddress;
log.info(`New public Ip detected: ${newIP}, old Ip:${oldIP} , updating the FluxNode info in the network`);
// eslint-disable-next-line global-require
const dockerService = require('./dockerService');
Expand Down

0 comments on commit 9301d40

Please sign in to comment.