Skip to content

Commit

Permalink
Fix protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Feb 12, 2024
1 parent 5459307 commit 53e8462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metal-api/internal/metal/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 53e8462

Please sign in to comment.