We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9afb25c + 9aaa7bb commit 021c974Copy full SHA for 021c974
pkg/guestagent/kubernetesservice/kubernetesservice.go
@@ -7,6 +7,7 @@ import (
7
"net"
8
"net/url"
9
"os"
10
+ "strings"
11
"sync"
12
"time"
13
@@ -24,7 +25,7 @@ type Protocol string
24
25
const (
26
// UDP/SCTP when lima port forwarding works on those protocols.
27
- TCP Protocol = "TCP"
28
+ TCP Protocol = "tcp"
29
)
30
31
type Entry struct {
@@ -142,7 +143,7 @@ func (s *ServiceWatcher) GetPorts() []Entry {
142
143
}
144
145
entries = append(entries, Entry{
- Protocol: Protocol(portEntry.Protocol),
146
+ Protocol: Protocol(strings.ToLower(string(portEntry.Protocol))),
147
IP: net.ParseIP("0.0.0.0"),
148
Port: uint16(port),
149
})
0 commit comments