Deprecate TCP support

This commit is contained in:
Theodor S. Midtlien
2026-09-25 16:10:16 +02:00
parent 9907a39765
commit b7fada83b9
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func listenOnAddress(addr string, allowed []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|npipe]://[path|host:port|name] format: %q", addr)
return "", "", fmt.Errorf("address must be in [unix|npipe]://[path|name] format, or the deprecated tcp://host:port: %q", addr)
}
switch network {