exclude ipc scheme from port check #28020

pull JayBitron wants to merge 1 commits into bitcoin:master from JayBitron:master changing 1 files +1 −1
  1. JayBitron commented at 12:25 PM on July 2, 2023: none

    Previous PR #22087 cause new error, makes it impossible to use ipc protocol using zmq, this patch will exclude port checking on ipc urls.

  2. exclude ipc scheme port check 0b1762c90d
  3. DrahtBot commented at 12:25 PM on July 2, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #27375 (net: support unix domain sockets for -proxy and -onion by pinheadmz)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. DrahtBot renamed this:
    exclude ipc scheme from port check
    exclude ipc scheme from port check
    on Jul 2, 2023
  5. in src/init.cpp:1264 in 0b1762c90d
    1260 | @@ -1261,7 +1261,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
    1261 |          for (const std::string& socket_addr : args.GetArgs(port_option)) {
    1262 |              std::string host_out;
    1263 |              uint16_t port_out{0};
    1264 | -            if (!SplitHostPort(socket_addr, port_out, host_out)) {
    1265 | +            if (socket_addr.rfind("ipc:", 0) != 0 && !SplitHostPort(socket_addr, port_out, host_out)) {
    


    luke-jr commented at 3:24 PM on July 4, 2023:

    rfind is a very weird choice here. Suggest using compare


    JayBitron commented at 9:16 PM on July 4, 2023:

    compare throws an exception if the input string is lower than 4 character, but since this a conflict PR, please close it.

  6. luke-jr changes_requested
  7. luke-jr commented at 4:57 PM on July 4, 2023: member

    nit: Rebasing onto bbbf89a9de0757c44880495244f90967f7147c0d would enable a clean merge to 25.x also

  8. pinheadmz commented at 11:56 AM on July 6, 2023: member

    See also #27679 which closes the same issue and has tests

  9. JayBitron closed this on Jul 14, 2023

  10. luke-jr referenced this in commit defe61d32a on Aug 16, 2023
  11. bitcoin locked this on Jul 13, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-25 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me