Prefer IPv4 Connections patch
This commit is contained in:
parent
be919e23e3
commit
b7a94d426a
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ module.exports = (logger, config) => {
|
|||
const outgoing = require('../outgoing')
|
||||
this.jid = null
|
||||
|
||||
// prefer IPv4 connections
|
||||
const dns = require('node:dns');
|
||||
dns.setDefaultResultOrder('ipv4first');
|
||||
|
||||
// declare send chat/groupchat function
|
||||
this.send = async (to, message, type) => {
|
||||
logger.info(`Send ${type} message to ${to}`)
|
||||
|
|
Loading…
Reference in a new issue