bugfix: setting public ip and handling options ping

This commit is contained in:
Dave Horton
2020-04-20 16:34:54 -04:00
parent c1e4324b51
commit 203cd0d16b
2 changed files with 6 additions and 14 deletions

2
app.js
View File

@@ -48,7 +48,7 @@ if (process.env.DRACHTIO_HOST) {
const last = hp.split(',').pop();
const arr = /^(.*)\/(.*):(\d+)$/.exec(last);
logger.info(`connected to drachtio listening on ${hp}: adding ${arr[2]} to sbc_addresses table`);
addSbcAddress(arr[1]);
addSbcAddress(arr[2]);
});
}
else {