.ipfs/api
and --api
does not parse SNI
#9897
Labels
dif/medium
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
If you try to use
/dns4/example.com/tcp/443/https
you would expect SNI andHost
to be properly set but thoses are left blank.This is because we are directly opening a tcp stream using
manet.Dial
. We should instead translate the multiaddress to anurl
and give the correct URL tonet/http
's client.Example code that handle properly doing the conversion in libp2p: https://github.com/libp2p/go-libp2p/blob/305282b0cdda802712be5dbcf3b6921912613414/p2p/transport/websocket/addrs.go#L49
The text was updated successfully, but these errors were encountered: