mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Fix auto-detection amongst multiple ngrok processes
Ngrok Pro plans allow multiple processes, which means you could be serving several sites simultaneously. This PR allows Valet to correctly identify amongst the active ngrok process URLs. Fixes #145
This commit is contained in:
@@ -226,8 +226,8 @@
|
||||
/**
|
||||
* Echo the currently tunneled URL.
|
||||
*/
|
||||
$app->command('fetch-share-url', function () {
|
||||
output(Ngrok::currentTunnelUrl());
|
||||
$app->command('fetch-share-url [domain]', function ($domain = null) {
|
||||
output(Ngrok::currentTunnelUrl($domain ?: Site::host(getcwd()).'.'.Configuration::read()['tld']));
|
||||
})->descriptions('Get the URL to the current Ngrok tunnel');
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user