What steps will reproduce the problem?
1. Load mod_onions
2. specify onions_socks5_host as a "domain", p.e. "tor_host"
3. Try to connect to some onion server
What is the expected output?
Connection should work without a problem
What do you see instead?
error Traceback[c2s]: .../lib/prosody/modules-community/mod_onions/mod_onions.lua:161: table index is nil
stack traceback:,
.../lib/prosody/modules-community/mod_onions/mod_onions.lua:161: in function 'register_outgoing',
.../lib/prosody/modules-community/mod_onions/mod_onions.lua:190: in function 'connect_socks5',
.../lib/prosody/modules-community/mod_onions/mod_onions.lua:259: in function '?',
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>,
(...tail calls...),
/usr/lib/prosody/core/stanza_router.lua:206: in function 'core_route_stanza',
/usr/lib/prosody/core/stanza_router.lua:184: in function 'core_post_stanza',
/usr/lib/prosody/core/stanza_router.lua:127: in function 'core_process_stanza',
/usr/lib/prosody/modules/mod_c2s.lua:275: in function 'func',
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
What version of the product are you using? On what operating system?
0.11.5 docker version
Please provide any additional information below.
I'm using docker swarm and the tor client itself is on another container where the IP address is always different, so the only way for this setup to work is for the host in onions_socks5_host to be "resolvable" and not expect an IP address there.
What steps will reproduce the problem? 1. Load mod_onions 2. specify onions_socks5_host as a "domain", p.e. "tor_host" 3. Try to connect to some onion server What is the expected output? Connection should work without a problem What do you see instead? error Traceback[c2s]: .../lib/prosody/modules-community/mod_onions/mod_onions.lua:161: table index is nil stack traceback:, .../lib/prosody/modules-community/mod_onions/mod_onions.lua:161: in function 'register_outgoing', .../lib/prosody/modules-community/mod_onions/mod_onions.lua:190: in function 'connect_socks5', .../lib/prosody/modules-community/mod_onions/mod_onions.lua:259: in function '?', /usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>, (...tail calls...), /usr/lib/prosody/core/stanza_router.lua:206: in function 'core_route_stanza', /usr/lib/prosody/core/stanza_router.lua:184: in function 'core_post_stanza', /usr/lib/prosody/core/stanza_router.lua:127: in function 'core_process_stanza', /usr/lib/prosody/modules/mod_c2s.lua:275: in function 'func', /usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125> What version of the product are you using? On what operating system? 0.11.5 docker version Please provide any additional information below. I'm using docker swarm and the tor client itself is on another container where the IP address is always different, so the only way for this setup to work is for the host in onions_socks5_host to be "resolvable" and not expect an IP address there.