mirror of
https://github.com/vale981/autossh
synced 2025-03-04 17:01:41 -05:00
removes redundant variable from examples
This commit is contained in:
parent
c3204e9908
commit
2e265ea6a8
1 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ The major benefit is that port conflicts will automatically be avoided--the gene
|
|||
The generated `localPort` can be accessed from the connection object as `localPort`.
|
||||
|
||||
``` javascript
|
||||
const myAutossh = autossh({
|
||||
autossh({
|
||||
host: '111.22.333.444',
|
||||
username: 'root',
|
||||
localPort: 'auto',
|
||||
|
@ -134,7 +134,7 @@ The default values are `serverAliveInterval=120` (120 seconds) and `serverAliveC
|
|||
You can set these options in the object you pass to `autossh`.
|
||||
|
||||
``` javascript
|
||||
const myAutossh = autossh({
|
||||
autossh({
|
||||
host: '111.22.333.444',
|
||||
username: 'root',
|
||||
localPort: 'auto',
|
||||
|
@ -158,7 +158,7 @@ When first trying to establish the ssh tunnel, `autoshh` will poll the local por
|
|||
Set the `maxPollCount` property in the object passed to `autossh`:
|
||||
|
||||
```javascript
|
||||
const myAutossh = autossh({
|
||||
autossh({
|
||||
host: '111.22.333.444',
|
||||
username: 'root',
|
||||
localPort: 'auto',
|
||||
|
@ -175,7 +175,7 @@ const myAutossh = autossh({
|
|||
Set the `maxPollCount` property to `0` or `false` in the object passed to `autossh`:
|
||||
|
||||
```javascript
|
||||
const myAutossh = autossh({
|
||||
autossh({
|
||||
host: '111.22.333.444',
|
||||
username: 'root',
|
||||
localPort: 'auto',
|
||||
|
|
Loading…
Add table
Reference in a new issue