Quote:
Originally Posted by michaelk
I would default to die after one transfer and a port other then 80.
I would display usage if no command line arguments were used.
The show_addr function does not display the correct IP address.
Improvements might be to add a compression option if transferring large or multiple files.
|
Thank you for your feedback.
You may be right, it could make sense to die after one transfer by default, I will think about that. However, I can not think about another default port other than 80. I imagine very very few people will actually find it useful to run it on port 80 and it will fail if the user has something like Apache already running, but I cannot think of another sensible default (other than just picking on arbitrarily).
Displaying usage by default is probably a good idea. I will change that.
The show_addr function should work, and it worked in my testing, however, of course it only shows the LAN IP (if behind a NAT). It also shows the address of "eth0" by default, in order to display some other interface you have to specify it with -i <if> on the command line.
Built-in compression or encryption would be useful I agree, but there are already good Linux tools for this and I would prefer not to add any external dependencies.
Thanks!