Skip to content

bug: cannot use multiaddr with 127.0.0.1 to dial #1974

Open
@weboko

Description

@weboko

This is a bug report/feature request/support request/change request

Problem

If /dns4/127.0.0.1/tcp/8000/ws/p2p/16Uiu2HAkxcq84cB1gD1MH5XDQNm1vakvUzwoEhmLFtywF7YF3Hvm is used to dial - then error is thrown from websocket transport here

Works just fine if ``/dns4/localhost/tcp/8000/ws/p2p/16Uiu2HAkxcq84cB1gD1MH5XDQNm1vakvUzwoEhmLFtywF7YF3Hvm` is used.

Proposed Solutions

Since nwaku generates multiaddr with IP in it - we should be able to dial it without error.
Most straightforward solution can be to check for 127.0.0.1 and replace with localhost.
But we also need to check why this throw actually happens as there might be unintended consequences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions