I have a snap application.
I'd like to run it on port 80 within ghci for local debugging purposes.
Normally I'd run sudo ./main -p 80
on the compiled binary to achieve this, but within ghci I get a permission denied.
*Main> :main -p 80
Initializing app @ /
Initializing heist @ /heist
...loaded 35 templates from /Users/dmj/blah/templates
Initializing CookieSession @ /sess
Listening on http://0.0.0.0:80/
Error on startup:
bind: permission denied (Permission denied)
Shutting down...
It works on non-privileged ports.
*Main> :main -p 8000
Initializing app @ /
Initializing heist @ /heist
...loaded 35 templates from /Users/dmj/blah
Initializing CookieSession @ /sess
Initializing db @ /auth
Initializing acid-state @ /acid
Listening on http://0.0.0.0:8000/