diff --git a/pkg/standalone/run.go b/pkg/standalone/run.go index 078a3543c..3d73bd129 100644 --- a/pkg/standalone/run.go +++ b/pkg/standalone/run.go @@ -144,6 +144,11 @@ func (config *RunConfig) validatePlacementHostAddr() error { config.PlacementHostAddr = &empty return nil } + + if strings.TrimSpace(placementHostAddr) == "" { + return nil + } + if indx := strings.Index(placementHostAddr, ":"); indx == -1 { if runtime.GOOS == daprWindowsOS { placementHostAddr += ":6050" @@ -166,6 +171,7 @@ func (config *RunConfig) validateSchedulerHostAddr() error { config.SchedulerHostAddress = &empty return nil } + if indx := strings.Index(schedulerHostAddr, ":"); indx == -1 { if runtime.GOOS == daprWindowsOS { schedulerHostAddr += ":6060"