This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: throw on invalid multiaddr to constructor (#934)
- dont assume that invalid multiaddrs are valid hosts - if multiaddrOrHost starts with a /, assume its a multiaddr - throw if that multiaddr is invalid. Previously, we'd try and use invalid multiaddrs as the host, which would lead to requests like http:///dnsaddr/foobar.com:5001/api License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
- Loading branch information
Showing
2 changed files
with
118 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters