M
M
Maxim Grishin2018-04-27 14:17:09
XMPP
Maxim Grishin, 2018-04-27 14:17:09

FreePBX XMPP server listening on port on ipv6 - how to target ipv4?

I’m not strong in node.js at all, especially when it comes to components that still need to be accessed through a bunch of dependencies of this very node.
There is a server lifted from FreePBX Distro 14, on it the XMPP module is installed among other things. While digging in Google, I found out that this module is the lets-chat module https://github.com/sdelements/lets-chat/ which is rather poorly documented, it works on top of the node-xmpp-server module, to which only the port and name are passed domain, that is, I can’t see (without digging into the giblets of the node), how to force lets-chat to create an ipv4 socket? Is it enough to just disable ipv6 in centos7 settings everywhere and everywhere, or not? (I would not want to do this in general, but now ipv6 is still not needed on this server)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Grishin, 2018-05-07
@vesper-bot

Hmm. In the lets-chat module, the list of parameters is not completely passed to the node-xmpp-server side, namely, no value of the host parameter is passed, which inside node-xmpp-server has a default value of "::" i.e. ipv6 - all interfaces. I added the transfer of the host parameter in the code with my hands, it worked.
One of two things: either the error was fixed a long time ago, and I just got a distro with an error in the files, while the diff node did not patch the file with an error, or no one uses the built-in XMPP server fripbx. It's a shame.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question