mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
fix: should not use Array.at function, use square brackets instead
This commit is contained in:
2
app.js
2
app.js
@@ -99,7 +99,7 @@ srf.on('connect', (err, hp) => {
|
||||
const newArray = Array.from(set);
|
||||
let startRegBot = !newArray || newArray.length === 0;
|
||||
if (!startRegBot) {
|
||||
const firstSbc = newArray.at(0);
|
||||
const firstSbc = newArray[0];
|
||||
const hostports = hp.split(',');
|
||||
for (const hp of hostports) {
|
||||
const arr = /^(.*)\/(.*:\d+)$/.exec(hp);
|
||||
|
||||
Reference in New Issue
Block a user