Skip to content

Commit e7563e1

Browse files
authored
Merge pull request #32 from vesper8/master
multiple fixes, probably warrants a 2.0 release
2 parents 31ddd09 + b42d985 commit e7563e1

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

README.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ We do not support version <=5.1.
2222
composer require stechstudio/laravel-ssh-tunnel
2323
```
2424

25-
### Register the Provider (Laravel version 5.8):
26-
27-
Inside the `config/app.php` file under `Package Service Providers`, add:
28-
29-
```STS\Tunneler\TunnelerServiceProvider::class,```
30-
31-
And under `Application Service Providers`, add:
32-
33-
```STS\Tunneler\TunnelerServiceProvider::class,```
34-
3525
### Register the Provider (version 5.4 and earlier):
3626

3727
For Lumen services, add:
@@ -85,7 +75,7 @@ TUNNELER_PORT=sshport
8575

8676
; How long to wait, in microseconds, before testing to see if the tunnel is created.
8777
; Depending on your network speeds you will want to modify the default of .5 seconds
88-
TUNNELER_CONN_WAIT=500000
78+
TUNNELER_CONN_WAIT=1000000
8979

9080
; How often it is checked if the tunnel is created. Useful if the tunnel creation is sometimes slow,
9181
; and you want to minimize waiting times

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
"minimum-stability": "stable",
2929
"require": {
30-
"illuminate/support": "^5.0|^6.0"
30+
"illuminate/support": "^5.5|^6.0"
3131
},
3232
"extra": {
3333
"laravel": {

config/tunneler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'user' => env('TUNNELER_USER'),
1919
'hostname' => env('TUNNELER_HOSTNAME'),
2020
'port' => env('TUNNELER_PORT'),
21-
'wait' => env('TUNNELER_CONN_WAIT', '500000'),
21+
'wait' => env('TUNNELER_CONN_WAIT', '1000000'),
2222
'tries' => env('TUNNELER_CONN_TRIES', 1),
2323

2424
'on_boot' => filter_var(env('TUNNELER_ON_BOOT', false), FILTER_VALIDATE_BOOLEAN),

src/Console/TunnelerCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TunnelerCommand extends Command {
1919

2020
public function handle(){
2121
try {
22-
$result = dispatch(new CreateTunnel());
22+
$result = dispatch_now(new CreateTunnel());
2323
}catch (\ErrorException $e){
2424
$this->error($e->getMessage());
2525
return 1;

src/Jobs/CreateTunnel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CreateTunnel
2424
public function __construct()
2525
{
2626

27-
$this->ncCommand = sprintf('%s -z %s %d > /dev/null 2>&1',
27+
$this->ncCommand = sprintf('%s -vz %s %d > /dev/null 2>&1',
2828
config('tunneler.nc_path'),
2929
config('tunneler.local_address'),
3030
config('tunneler.local_port')

0 commit comments

Comments
 (0)