Skip to content

Commit

Permalink
Fix documentation for with-local-port-forward
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoduncan committed Apr 12, 2012
1 parent c2ba87d commit 7ccb4bb
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,13 @@ time.

SSH tunneling is also supported:

```clj
(with-ssh-agent []
(let [session (session "localhost" :strict-host-key-checking :no)]
(with-local-tunnel session 8080 80
(with-connection session
(while (connected? session)
(Thread/sleep 100))))))

or more conveniently:

(with-ssh-agent []
(let [session (session "localhost" :strict-host-key-checking :no)]
(ssh-tunnel session 8080 80)))
(with-connection session
(with-local-port-forward [session 8080 80]
(comment do something with port 8080 here)))))
```

## Documentation

Expand Down

0 comments on commit 7ccb4bb

Please sign in to comment.