We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5bdf64a + aafb49c commit c827295Copy full SHA for c827295
src/openfunction/async_server.ts
@@ -20,7 +20,7 @@ export default function (
20
context: OpenFunctionContext
21
): AsyncFunctionServer {
22
// Initailize Dapr server
23
- const app = new DaprServer('localhost', context.port);
+ const app = new DaprServer('127.0.0.1', context.port, process.env.DAPR_HOST);
24
25
// Create wrapper for user function
26
const wrapper = OpenFunctionRuntime.WrapUserFunction(userFunction, context);
src/openfunction/runtime.ts
@@ -206,7 +206,7 @@ class DaprRuntime extends OpenFunctionRuntime {
206
* TODO: Should determine whether to use GRPC channel
207
*/
208
this.daprClient = new DaprClient(
209
- undefined,
+ process.env.DAPR_HOST,
210
this.sidecarPort.HTTP,
211
CommunicationProtocolEnum.HTTP
212
);
0 commit comments