Skip to content

Commit

Permalink
Fix scheduler broadcast address for windows (#1481)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Troshin <[email protected]>
  • Loading branch information
antontroshin authored Jan 31, 2025
1 parent 8ce6b9f commit f8ee63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,12 +659,12 @@ func runSchedulerService(wg *sync.WaitGroup, errorChan chan<- error, info initIn
}
}

osPort := 50006
if info.dockerNetwork != "" {
args = append(args,
"--network", info.dockerNetwork,
"--network-alias", DaprSchedulerContainerName)
} else {
osPort := 50006
if runtime.GOOS == daprWindowsOS {
osPort = 6060
}
Expand All @@ -684,7 +684,7 @@ func runSchedulerService(wg *sync.WaitGroup, errorChan chan<- error, info initIn
}

if schedulerOverrideHostPort(info) {
args = append(args, "--override-broadcast-host-port=localhost:50006")
args = append(args, fmt.Sprintf("--override-broadcast-host-port=localhost:%v", osPort))
}

_, err = utils.RunCmdAndWait(runtimeCmd, args...)
Expand Down

0 comments on commit f8ee63c

Please sign in to comment.