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

Debug mode detection - accept CIDR notation #52

Closed
Majkl578 opened this issue Jul 9, 2014 · 1 comment
Closed

Debug mode detection - accept CIDR notation #52

Majkl578 opened this issue Jul 9, 2014 · 1 comment

Comments

@Majkl578
Copy link
Contributor

Majkl578 commented Jul 9, 2014

It would be nice to accept CIDR notation for allowed (aka developer) addresses.
E.g. for a team working on a project in same office, it would be good to set allowed addresses to 10.0.0.0/8 or fc00::/7, so they can see each others' instances in debug mode. Or for a shared in-office testing machine.
Also relates to nette/bootstrap#9.

@dg
Copy link
Member

dg commented Feb 10, 2015

You can use Debugger::enable(Nette\Http\Helpers::ipMatch($_SERVER['REMOTE_ADDR', '10.0.0.0/8')).

I don't want to add to Tracy nothing that makes easier to do potentially dangerous things.

@dg dg closed this as completed Feb 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants