Skip to content

Commit

Permalink
fix: avoid using null appdata (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Mar 21, 2024
1 parent b47b68b commit d141a2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/http/ziti-websocket-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ async function initAsClient(websocket, address, protocols, options) {
let request = new ZitiHttpRequest(opts.serviceName, opts.href, opts, websocket._zitiContext);
const req_options = await request.getRequestOptions();
req_options.isWebSocket = true;
req_options.port = opts.serviceConnectAppData.dst_port;
if (!isUndefined(opts.serviceConnectAppData)) {
req_options.port = opts.serviceConnectAppData.dst_port;
}

// Send request
let req = (websocket._req = get(req_options));
Expand Down

0 comments on commit d141a2f

Please sign in to comment.