Wire up json socket as a named pipe with metdata exchange to daemon

This commit is contained in:
Theodor S. Midtlien
2026-07-23 20:27:06 +02:00
parent 2f84aa3d20
commit f60ac9e746
10 changed files with 139 additions and 41 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func listenOnAddress(addr string) (*socketListener, error) {
func parseListenAddress(addr string) (string, string, error) {
network, address, ok := strings.Cut(addr, "://")
if !ok || network == "" || address == "" {
return "", "", fmt.Errorf("address must be in [unix|tcp]://[path|host:port] format: %q", addr)
return "", "", fmt.Errorf("address must be in [unix|tcp|npipe]://[path|host:port|name] format: %q", addr)
}
switch network {