File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default function (
20
20
context : OpenFunctionContext
21
21
) : AsyncFunctionServer {
22
22
// Initailize Dapr server
23
- const app = new DaprServer ( 'localhost ' , context . port ) ;
23
+ const app = new DaprServer ( '127.0.0.1 ' , context . port , process . env . DAPR_HOST ) ;
24
24
25
25
// Create wrapper for user function
26
26
const wrapper = OpenFunctionRuntime . WrapUserFunction ( userFunction , context ) ;
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class DaprRuntime extends OpenFunctionRuntime {
206
206
* TODO: Should determine whether to use GRPC channel
207
207
*/
208
208
this . daprClient = new DaprClient (
209
- undefined ,
209
+ process . env . DAPR_HOST ,
210
210
this . sidecarPort . HTTP ,
211
211
CommunicationProtocolEnum . HTTP
212
212
) ;
You can’t perform that action at this time.
0 commit comments