mirror of
https://github.com/caddyserver/caddy.git
synced 2026-04-18 01:08:46 +02:00
previously the `caddy respond` command would treat the argument passed to --listen as a TCP socket address, iterating over a possible port range. this patch factors the server creation out into a separate function, allowing this to be reused in case the listen address is a unix network address.