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

Plugins are registered multiple times #17

Closed
ppacher opened this issue Jan 23, 2020 · 0 comments
Closed

Plugins are registered multiple times #17

ppacher opened this issue Jan 23, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ppacher
Copy link
Collaborator

ppacher commented Jan 23, 2020

When using a range specifier for the server block each plugin is registered three times.
For example, the following configuration will register the range and lease plugins three times in a row.

192.168.0.100 - 192.168.0.150
lease 1h

The root cause is that caddyserver/caddy calls the plugins setup function for each key in the server block header (192.168.0.100 - 192.168.0.150).

@ppacher ppacher added the bug Something isn't working label Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant