Skip to content

Commit

Permalink
Merge pull request #16 from Shivanshu-lambdatest/IN-1533
Browse files Browse the repository at this point in the history
fix to support node tunnel on mac m1
  • Loading branch information
dubesar authored Mar 25, 2022
2 parents 1aa2003 + 05eeea5 commit b72f5d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tunnel_binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function TunnelBinary(httpTunnelConfig, options) {
}
this.httpTunnelConfig = httpTunnelConfig;
this.hostOS = process.platform;
this.bits = process.arch === 'x64' ? '64bit' : '32bit';
this.bits = process.arch === 'x64' || process.arch === 'arm64' ? '64bit' : '32bit';
if (this.hostOS.match(/darwin|mac os/i)) {
this.platform = 'mac';
} else if (this.hostOS.match(/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lambdatest/node-tunnel",
"version": "3.0.5",
"version": "3.0.6",
"description": "Nodejs bindings for LambdaTest Tunnel",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit b72f5d7

Please sign in to comment.