diff --git a/drivers/driverutil/util.go b/drivers/driverutil/util.go index cf36fc5a46..a4b236b223 100644 --- a/drivers/driverutil/util.go +++ b/drivers/driverutil/util.go @@ -5,7 +5,7 @@ import "strings" // SplitPortProto splits a string in the format port/protocol, defaulting // protocol to "tcp" if not provided. func SplitPortProto(raw string) (port string, protocol string, err error) { - parts := strings.Split(raw, "/") + parts := strings.SplitN(raw, "/", 2) if len(parts) == 1 { protocol = "tcp" } else {