Commit 0a68c7befaa124be40b276a5b42da5c9ded98d6f
1 parent
6aecd3f487
Exists in
master
and in
1 other branch
TRANSPORT sending to modem use prefix rules.
Can be bypass by config.ignore_prefix
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/transport.js
... | ... | @@ -92,7 +92,7 @@ exports.send = async (partner, msg) => { |
92 | 92 | msg, |
93 | 93 | }); |
94 | 94 | |
95 | - const modem = modems.randomModem(); | |
95 | + const modem = config.ignore_prefix ? modems.randomModem() : modems.randomModemByPrefix(partner); | |
96 | 96 | if (!modem) { |
97 | 97 | logger.warn('TRANSPORT: Not sending message to EVO-CP because of no available modem', { |
98 | 98 | xid, |