diff --git a/main.go b/main.go index 831b9d6..f3dcc9d 100644 --- a/main.go +++ b/main.go @@ -1188,7 +1188,7 @@ func getOvpnServerHostsFromKubeApi() []OpenvpnServer { if service.Status.LoadBalancer.Ingress[0].IP != "" { lbHost = service.Status.LoadBalancer.Ingress[0].IP } - hosts = append(hosts, OpenvpnServer{lbHost,strconv.Itoa(int(service.Spec.Ports[0].Port)),string(service.Spec.Ports[0].Protocol)}) + hosts = append(hosts, OpenvpnServer{lbHost,strconv.Itoa(int(service.Spec.Ports[0].Port)),strings.ToLower(string(service.Spec.Ports[0].Protocol))}) return hosts }