-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: initial implementation #1
base: main
Are you sure you want to change the base?
Conversation
Can we make this a proper multiaddr uri: |
Can we register the well known handler somehow? |
I don't think so in that I think the bind semantics require namespaces to have |
I was thinking about this, but it depends on how we want to use it. Out of the box there's no utility to the well known handler since there are no protocols registered by default. What were you thinking? |
Actually might be possible looking at some of the valid example from here: https://caddyserver.com/docs/conventions#network-addresses Although it's possible we'd have to do some hacks like make the namespace |
|
||
func init() { | ||
//caddy.RegisterModule(new(LL)) | ||
caddy.RegisterNetwork("multiaddr:", registerMultiaddrURI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarcoPolo this (along with the hack to add a /
to the returned address) seems to allow passing multiaddr URIs. A bit gross, but seems ok
WIP, but example Caddyfile:
Caddy can be built locally with:
xcaddy.exe build --with github.com/aschmahmann/caddy-libp2p-listener=.