benrady / shinatra

A simple web server in 5 lines of bash
811 stars 81 forks source link

Port parameter to netcat command added. #18

Open zalalov opened 5 years ago

benrady commented 5 years ago

netcat on OSX doesn't recognize this parameter, so it seems adding this would make shinatra less portable. Is there an environment where you've found -p to be necessary?

remileduc commented 5 years ago

Hello,

On Debian Buster (current testing) with netcat-traditional (1.10-41.1), it doesn't work without the -p option.

Seems to be the same on all Debian based distrib: https://ubuntuforums.org/showthread.php?t=823940

Seems to not work on Arch Linux neither: https://github.com/benrady/shinatra/issues/11

benrady commented 1 year ago

shinatra works as-is for me on Ubuntu 22.04