-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using --add-exclusive-node foo:28080 errors with: Failed to parse or resolve address from string: foo:28080 #8633
Comments
Does it work if you replace |
yes, it does work with the resolved ip address, in fact that's the hack I'm doing right now starting the container after doing a
you cenrtainly know better the code, however the logs seems to indicate something different, this line in particular |
Huh, yeah looks like you found a bug! Try compiling #8643, run |
amazing, I tested it and it's working great, can reach my containers with their host name now without having to dig for their ips !! |
Fixes monero-project#8633. The function `append_net_address` did not parse hostname + port addresses (e.g. `bar:29080`) correctly if the hostname did not contain a `'.'` character. @vtnerd comments 1 clear up 2nd conditional statement
Fixes monero-project#8633. The function `append_net_address` did not parse hostname + port addresses (e.g. `bar:29080`) correctly if the hostname did not contain a `'.'` character. @vtnerd comments 1 clear up 2nd conditional statement
in order to perform e2e tests I have set up a Dockerfile that spawns a regtest monerod, creates a predictible wallet and spawns a wallet rpc, all that handled by the might s6-overlay.
you can find an example here and clone it : https://gitlab.com/euri10/monero_docker_regtest.git
to run it just do
docker compose up -d --build
the issue I'm facing is the following:
in
monero_docker/root/etc/s6-overlay/s6-rc.d/monerod/run
which is the scrippt that launches monerod I uses the--add-exclusive-node
flag.Now if you look more closely at https://gitlab.com/euri10/monero_docker_regtest/-/blob/main/src/root/etc/s6-overlay/s6-rc.d/monerod/run#L12-13
I pass the ip of the container to the
--add-exclusive-node
flag and it's working fine.however, since the 2 containers are in the same network and are reachable I should not have to do the reverse lookup myself in the entry script,
if I uncomment line 12 and comment line 13, which I think is the right thing to do, then monerod complains with the following error:
In essence, when I'm passing
--add-exclusive-node bar:29080
monerod interprets it as if the host wasbar:29080
and the port18080
which is not the case, hopefully it should understand that bar is the host and 29080 is the portThe text was updated successfully, but these errors were encountered: