Skip to content

Commit 84792aa

Browse files
committed
1 parent cc1b9ea commit 84792aa

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

db-connector.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3739,6 +3739,7 @@ func GetOrg(ctx context.Context, id string) (*Org, error) {
37393739

37403740

37413741
func init() {
3742+
37423743
isValid := checkImportPath()
37433744
if !isValid {
37443745
time.Sleep(time.Duration(600+rand.Intn(600)) * time.Second)

shared.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)