1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00
caddy/cmd
Emily 8d304a4566
cmd: Split unix sockets for admin endpoint addresses (#5696)
* cmd: fix cli when admin endpoint uses new unix socket permission format

Fixes a bug where the following Caddyfile

```Caddyfile
{
	admin unix/admin.sock|0660
}
```

and `caddy reload --config Caddyfile`
would throw the following error instead of reloading it:

```
INFO    using provided configuration    {"config_file": "Caddyfile", "config_adapter": ""}
Error: sending configuration to instance: performing request: Post "http://127.0.0.1/load": dial unix admin.sock|0660: connect: no such file or directory
[ERROR] exit status 1
```

---

This bug also affected `caddy start` and `caddy stop`.

* Move splitter function to internal

---------

Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
2023-08-06 00:09:16 +00:00
..
caddy reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
cobra.go cmd: Expand cobra support, add short flags (#5379) 2023-02-24 16:09:12 -07:00
commandfuncs.go cmd: Split unix sockets for admin endpoint addresses (#5696) 2023-08-06 00:09:16 +00:00
commands.go cmd: Implement storage import/export (#5532) 2023-06-02 13:04:31 -06:00
main.go cmd: Avoid spammy log messages (fix #5538) 2023-05-17 16:13:15 -06:00
main_test.go cmd: Enhance .env (dotenv) file parsing 2022-04-13 11:38:20 -06:00
packagesfuncs.go chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
removebinary.go core: Windows service integration (#4790) 2022-07-29 14:06:54 -06:00
removebinary_windows.go Fix compilation on Windows 2022-07-28 15:44:36 -06:00
storagefuncs.go cmd: Implement storage import/export (#5532) 2023-06-02 13:04:31 -06:00