mbrubeck / agate

Very simple server for the Gemini hypertext protocol
Apache License 2.0
600 stars 37 forks source link

Add support for listening UNIX sockets #244

Closed equalsraf closed 1 year ago

equalsraf commented 1 year ago

A new CLI option --socket enables listening on UNIX sockets. This is similar to the --addr option, but takes a path as argument.

If the given path already exists and it is a socket, attempt to remove it before listening.

The port check was refactored to avoid the retrieval of the TCP port on every request.


Notes: