Skip to content

fix(cli): v1 config rejecting endpoints without explicit port#1576

Open
va-an wants to merge 2 commits into
payjoin:masterfrom
va-an:fix/v1-endpoint-implicit-port
Open

fix(cli): v1 config rejecting endpoints without explicit port#1576
va-an wants to merge 2 commits into
payjoin:masterfrom
va-an:fix/v1-endpoint-implicit-port

Conversation

@va-an
Copy link
Copy Markdown
Contributor

@va-an va-an commented May 24, 2026

-> % payjoin-cli --bip78 --port 3000 --pj-endpoint https://example.com/ receive 50000

Error: If --port is 0, --pj-endpoint may not have a port

Two problems here:

  • --port is 3000, not 0.
  • The command should succeed, because this is a valid reverse-proxy setup - nginx terminating TLS on 443 and forwarding to payjoin-cli on 3000.
Pull Request Checklist

Please confirm the following before requesting review:

State the port check's single invariant directly: `--port 0`
(let the OS pick) is incompatible with a `--pj-endpoint` URL
that pins a specific port.
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 24, 2026

Coverage Report for CI Build 26398782191

Coverage increased (+0.05%) to 85.192%

Details

  • Coverage increased (+0.05%) from the base build.
  • Patch coverage: 29 of 29 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 13729
Covered Lines: 11696
Line Coverage: 85.19%
Coverage Strength: 394.49 hits per line

💛 - Coveralls

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 this pull request may close these issues.

2 participants