Skip to content
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

HTTP api info returns incorrect ports #689

Closed
rithvikvibhu opened this issue Feb 11, 2022 · 0 comments · Fixed by #696
Closed

HTTP api info returns incorrect ports #689

rithvikvibhu opened this issue Feb 11, 2022 · 0 comments · Fixed by #696

Comments

@rithvikvibhu
Copy link
Member

Start hsd with (different p2p and brontide ports):

hsd --prefix /tmp/hsd_1 --network regtest --no-dns true --no-wallet --index-tx true --index-address true --port 14138 --brontide-port 46816 --http-port 14137 --listen true

And the port 14138 is picked up correcty. Log says:

[info] (net) Pool server listening on 0.0.0.0 (port=14138).

But with hsd-cli info:

{
   "pool": {
    "host": "106.x.x.x",
    "port": 14038,
    "brontideHost": "0.0.0.0",
    "brontidePort": 46806,
    "identitykey": "aorsxa...",
    "agent": "/hsd:3.0.1/",
    "services": "11",
    "outbound": 0,
    "inbound": 1
  },
}

The host IP address is correctly set to public IP, but port and brontidePort are wrong and show the default ports (14038, 46806).

Can connect to port 14138, so log is correct and info is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant