@@ -28462,19 +28462,22 @@ func DecideExecution(ctx context.Context, workflowExecution WorkflowExecution, e
2846228462 return workflowExecution, relevantActions
2846328463}
2846428464
28465- func isNoProxyHost(noProxy, host string) bool {
28465+ func isNoProxyHost(noProxy, inputHost string) bool {
2846628466 // Normalize the host by removing the port if present
28467- host, _, err := net.SplitHostPort(host )
28467+ host, _, err := net.SplitHostPort(inputHost )
2846828468 if err != nil {
28469- log.Printf("[ERROR] Failed to split host and port: %s", err)
28469+ //log.Printf("[ERROR] Failed to split host and port: %s", err)
28470+ host = inputHost
2847028471 }
2847128472
2847228473 host = strings.TrimSpace(host) // Fallback to trimming
28473-
28474- for _, noProxyEntry := range strings.Split(noProxy, ",") {
28475- noProxyEntry , _, err := net.SplitHostPort(noProxyEntry)
28474+ noProxies := strings.Split(noProxy, ",")
28475+ for _, noProxyEntry := range noProxies {
28476+ newProxyEntry , _, err := net.SplitHostPort(noProxyEntry)
2847628477 if err != nil {
28477- log.Printf("[ERROR] Failed to split host and port for NOPROXY: %s", err)
28478+ //log.Printf("[ERROR] Failed to split host and port for NOPROXY: %s", err)
28479+ } else {
28480+ noProxyEntry = newProxyEntry
2847828481 }
2847928482
2848028483 noProxyEntry = strings.TrimSpace(noProxyEntry)
0 commit comments