Skip to content

Commit c5b0678

Browse files
committed
update README to use 127.0.0.1 instead of localhost since I just got bit by ipv6 versus ipv4 confusion
1 parent bbc63b4 commit c5b0678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocketfs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ More concretely:
2828

2929
```js
3030
// In your first terminal
31-
require('websocketfs').serve({path:process.env.HOME, port:'3456', host:'localhost'})
31+
require('websocketfs').serve({path:process.env.HOME, port:'3456', host:'127.0.0.1'})
3232
```
3333

3434
```js
3535
// In your second terminal
36-
require('websocketfs').mount({path:'/tmp/mnt', remote:'ws://localhost:3456'})
36+
require('websocketfs').mount({path:'/tmp/mnt', remote:'ws://127.0.0.1:3456'})
3737
```
3838

3939
Now /tmp/mnt should show the same files as your home directory. Note the ws://localhost:3456 filesystem below.

0 commit comments

Comments
 (0)