Skip to content

Commit

Permalink
Merge pull request #8 from eze-kiel/develop
Browse files Browse the repository at this point in the history
Changed default ip address
  • Loading branch information
eze-kiel authored Nov 24, 2020
2 parents 8381ca9 + 8e171bd commit 39d882c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The minimal command to share a single file is the following:

```
$ shaloc share -f myfile.txt
Sharing myfile.txt on http://127.0.0.1:8080/myfile.txt
Sharing myfile.txt on http://0.0.0.0:8080/myfile.txt
```

Note that you can choose the IP and the port (respectively `-i` and `-p`). With the flag `-r`, you can randomize the URI with a given length. For example :
Expand Down Expand Up @@ -84,7 +84,7 @@ This command is the minimal command to share a folder:
```
$ shaloc share -F /home/user/sup3r-f0ld3r
INFO[0000] Zipping /home/user/sup3r-f0ld3r into /tmp/sup3r-f0ld3r.zip...
Sharing /tmp/sup3r-f0ld3r.zip on http://127.0.0.1:8080/sup3r-f0ld3r.zip
Sharing /tmp/sup3r-f0ld3r.zip on http://0.0.0.0:8080/sup3r-f0ld3r.zip
```

You can also specify the IP addresse to share on, as well as the port with the same flags as before (`-i` and `-p`), and randomize the URI as well with `-r`.
Expand All @@ -97,7 +97,7 @@ By default, the file can be downloaded an unlimited amout of times. If you want

```
$ ./shaloc share -f foobar.txt -m 2
Sharing foobar.txt on http://127.0.0.1:8080/foobar.txt
Sharing foobar.txt on http://0.0.0.0:8080/foobar.txt
INFO[0003] Downloads remaining: 1
INFO[0006] Downloads remaining: 0
INFO[0006] Max number of downloads reached, shutting down the server.
Expand All @@ -113,7 +113,7 @@ You can easily share an encrypted file/folder :
$ shaloc share -F /home/user/folder --aes
Type encryption key:
INFO[0001] Zipping /home/user/folder into /tmp/folder.zip...
Sharing /tmp/folder.zip on http://127.0.0.1:8080/folder.zip
Sharing /tmp/folder.zip on http://0.0.0.0:8080/folder.zip
```

To receive it, just launch:
Expand Down
2 changes: 1 addition & 1 deletion cmd/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ This will share the folder /home/user/sup3r-f0ld3r on 127.0.0.1:8080:

func init() {
rootCmd.AddCommand(shareCmd)
shareCmd.Flags().StringP("ip", "i", "127.0.0.1", "IP address to serve on.")
shareCmd.Flags().StringP("ip", "i", "0.0.0.0", "IP address to serve on.")
shareCmd.Flags().StringP("port", "p", "8080", "Port to serve on.")
shareCmd.Flags().StringP("file", "f", "", "File to share.")
shareCmd.Flags().StringP("folder", "F", "", "Folder to share. It will be zipped.")
Expand Down

0 comments on commit 39d882c

Please sign in to comment.