Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

X0RW3LL
Copy link
Contributor

@X0RW3LL X0RW3LL commented Jan 8, 2025

This PR addresses the following:

  • Allow clients to request files for download
  • Various semantic changes and typo fixes
  • Report correct exit codes to shell on failure
  • Allow server to reuse addr
  • Handle more exceptions
  • Prevent server disclosure

* Reword argument names (listening_ip, listening_port -> lhost, lport)
* Make positional args (lhost, lport) default to 0.0.0.0:8080 if not passed
* Reword examples (Start -> Bind, interface -> address)
* Remove extra colon in examples
* Allow clients to request files for download
* More exception handling (handle missing files, NULL characters in requests)
* Rename --upload-folder to --upload-dir
* Ensure uploaded files are written to disk without the trailing CRLF
  line endings
* Report exit codes to shell with their correct errno values on failure
@gh0x0st
Copy link
Owner

gh0x0st commented Jan 13, 2025

Thank you for your contribution to this project!

@gh0x0st gh0x0st merged commit 5c967bd into gh0x0st:main Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants