Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add domain specification #328

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

manafire
Copy link

Allow users to specify domains in addition to IPs. See: #306

@szemek
Copy link

szemek commented Dec 30, 2015

@manafire recently I run into issue that my web server binds to Unix domain socket and code fails when executing allow_ip?(env).

What do you think about changing order of the execution

if allow_domain?(env) || allow_ip?(env)

?

In that case I could solve my problem with:

BetterErrors::Middleware.allow_domain!('socket')

@manafire
Copy link
Author

manafire commented Jan 2, 2016

@szemek I have changed the order as you've requested. Hope that works for you.

@rubemlrm
Copy link

its possible merge this pull request ? =) i'm working with vagrant env and i'm using custom domain for that instead ips .

@RobinDaugherty
Copy link
Member

@rubemlrm using a custom domain is not secure, as was discussed in #306. Please see the wiki for instructions on setting up vagrant correctly.

@rubemlrm
Copy link

@RobinDaugherty sorry for the duplicated error :/ i will check that later , and i will test with docker too , since i've discard the vagrant usage to use docker instead. But anyway thanks for the reply and support =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants