From 53e84626dd118daaf82a0667189a742b19a70f25 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Mon, 12 Feb 2024 14:00:07 +0100 Subject: [PATCH] Fix protocol --- cmd/metal-api/internal/metal/machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/metal-api/internal/metal/machine.go b/cmd/metal-api/internal/metal/machine.go index ae4f78759..f4d09cb18 100644 --- a/cmd/metal-api/internal/metal/machine.go +++ b/cmd/metal-api/internal/metal/machine.go @@ -183,7 +183,7 @@ func ProtocolFromString(s string) (Protocol, error) { case "tcp": return ProtocolTCP, nil case "udp": - return ProtocolTCP, nil + return ProtocolUDP, nil default: return Protocol(""), fmt.Errorf("no such protocol: %s", s) }