ergochat / ircdog

a tool for sending and receiving raw IRC protocol lines
ISC License
35 stars 7 forks source link

support connecting to unix domain sockets #49

Open slingamn opened 4 months ago

slingamn commented 4 months ago

Including http+unix URLs --- nice potential enhancement for debugging

slingamn commented 2 months ago

We already support this for IRC connections, e.g. ircdog /tmp/oragono_socket works as expected.

Supporting websockets is nontrivial. It's vaguely possible to hack this into Gorilla, but as it turns out, url.Parse doesn't like http+unix URLs with percent-encoded hostnames, so we get tripped up here:

https://github.com/ergochat/ircdog/blob/71e3129e47d2061d65e6c6ff6091bea86423b8fc/ircdog.go#L106-L110

Probably not worth it at this time.