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 (
2020 context : OpenFunctionContext
2121) : AsyncFunctionServer {
2222 // 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 ) ;
2424
2525 // Create wrapper for user function
2626 const wrapper = OpenFunctionRuntime . WrapUserFunction ( userFunction , context ) ;
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class DaprRuntime extends OpenFunctionRuntime {
206206 * TODO: Should determine whether to use GRPC channel
207207 */
208208 this . daprClient = new DaprClient (
209- undefined ,
209+ process . env . DAPR_HOST ,
210210 this . sidecarPort . HTTP ,
211211 CommunicationProtocolEnum . HTTP
212212 ) ;
You can’t perform that action at this time.
0 commit comments