Skip to content

Commit

Permalink
Revert ngrok arm binary (#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored May 26, 2022
1 parent 7846f60 commit 0208251
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ phpunit.xml.dist export-ignore
UPGRADE.md export-ignore

/bin/ngrok -diff
/bin/ngrok-arm -diff
Binary file removed bin/ngrok-arm
Binary file not shown.
1 change: 0 additions & 1 deletion cli/Valet/Diagnose.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Diagnose
'curl --version',
'php --ri curl',
'~/.composer/vendor/laravel/valet/bin/ngrok version',
'~/.composer/vendor/laravel/valet/bin/ngrok-arm version',
'ls -al ~/.ngrok2',
'brew info nginx',
'brew info php',
Expand Down
8 changes: 1 addition & 7 deletions valet
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,7 @@ then
# Fetch Ngrok URL In Background...
bash "$DIR/cli/scripts/fetch-share-url.sh" "$HOST" &

ARCH=$(uname -m)

if [[ $ARCH == 'arm64' ]]; then
"$DIR/bin/ngrok-arm" http "$HOST.$TLD:$PORT" -host-header=rewrite $PARAMS
else
"$DIR/bin/ngrok" http "$HOST.$TLD:$PORT" -host-header=rewrite $PARAMS
fi
sudo -u "$USER" "$DIR/bin/ngrok" http "$HOST.$TLD:$PORT" --host-header=rewrite $PARAMS

exit

Expand Down

0 comments on commit 0208251

Please sign in to comment.