File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
tests/integration/framework/process/daprd Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -965,8 +965,16 @@ func (a *DaprRuntime) initActors(ctx context.Context) error {
965
965
if ! ok {
966
966
log .Info ("actors: state store is not configured - this is okay for clients but services with hosted actors will fail to initialize!" )
967
967
}
968
+ // Override host address if the internal gRPC listen address is localhost.
969
+ hostAddress := a .hostAddress
970
+ if utils .Contains (
971
+ []string {"127.0.0.1" , "localhost" , "[::1]" },
972
+ a .runtimeConfig .internalGRPCListenAddress ,
973
+ ) {
974
+ hostAddress = a .runtimeConfig .internalGRPCListenAddress
975
+ }
968
976
actorConfig := actors .NewConfig (actors.ConfigOpts {
969
- HostAddress : a . hostAddress ,
977
+ HostAddress : hostAddress ,
970
978
AppID : a .runtimeConfig .id ,
971
979
ActorsService : a .runtimeConfig .actorsService ,
972
980
RemindersService : a .runtimeConfig .remindersService ,
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ func New(t *testing.T, fopts ...Option) *Daprd {
103
103
"--dapr-http-port=" + strconv .Itoa (opts .httpPort ),
104
104
"--dapr-internal-grpc-port=" + strconv .Itoa (opts .internalGRPCPort ),
105
105
"--dapr-internal-grpc-listen-address=127.0.0.1" ,
106
+ "--dapr-listen-addresses=127.0.0.1" ,
106
107
"--dapr-public-port=" + strconv .Itoa (opts .publicPort ),
107
108
"--dapr-public-listen-address=127.0.0.1" ,
108
109
"--metrics-port=" + strconv .Itoa (opts .metricsPort ),
You can’t perform that action at this time.
0 commit comments