jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
593 stars 49 forks source link

Dual stack support #87

Closed vx3r closed 5 years ago

vx3r commented 5 years ago

Hello,

I am unable to make rubywarden listen on both ipv4 and ipv6. This cmd is ok for ipv6 sudo -u rubywarden env RUBYWARDEN_ENV=production ALLOW_SIGNUPS=1 bundle exec rackup -o "::" -p 9080 config.ru And this one for ipv4 sudo -u rubywarden env RUBYWARDEN_ENV=production ALLOW_SIGNUPS=1 bundle exec rackup -o "0.0.0.0" -p 9080 config.ru

The first one is supposed to listen on both ipv4 and ipv6..

Thank you

jcs commented 5 years ago

That has nothing to do with Rubywarden and would be an issue with Rack. Regardless, you should probably not be exposing Rack directly to the internet and use something in front of it like nginx.