diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2018-08-10 05:05:11 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2018-08-10 05:05:21 +0000 |
commit | b58624818372c63a74028c1e0830b8186a3abcbf (patch) | |
tree | 7ff4d653731a472ac8b4d0654a2803b6dcae59fe /README.md | |
parent | Merge pull request #14 from colindean/colindean/better-make (diff) | |
download | miniserve-0.2.0.tar.gz miniserve-0.2.0.zip |
Allow for multiple interfaces to be specified at the same timev0.2.0
Diffstat (limited to '')
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -25,6 +25,10 @@ Sometimes this is just a more practical and quick way than doing things properly miniserve --auth joe:123 unreleased-linux-distros/ +### Bind to multiple interfaces: + + miniserve -i 192.168.0.1 -i 10.13.37.10 -i ::1 -- /tmp/myshare + ## Features - Easy to use @@ -54,6 +58,14 @@ Sometimes this is just a more practical and quick way than doing things properly cargo install miniserve miniserve +## Binding behavior + +For convenience reasons, miniserve will try to bind on all interfaces by default (if no `-i` is provided). +It will also do that if explicitly provided with `-i 0.0.0.0` or `-i ::`. +In all of the aforementioned cases, it will bind on both IPv4 and IPv6. +If provided with an explicit non-default interface, it will ONLY bind to that interface. +You can provide `-i` multiple times to bind to multiple interfaces at the same time. + ## Why use this over alternatives? - darkhttpd: Not easily available on Windows and it's not as easy as download and go. |