caddy-dynamicdns icon indicating copy to clipboard operation
caddy-dynamicdns copied to clipboard

Added include/exclude lists for IP ranges, which plugins can opt-into using

Open eliasvasylenko opened this issue 10 months ago • 2 comments

This PR may be controversial as it's not backwards compatible with existing ip_source plugins, I'm happy to take a different approach if there's pushback.

This is to address https://github.com/mholt/caddy-dynamicdns/issues/74

The issue was for adding some sort of config switch to enable private IPs using the interface plugin to support e.g. internal services or split-horizon DNS setups. I've tried to generalise this in two ways:

  • Supporting IP range / subnet includes/excludes subsumes this and may be useful in its own right.
  • Factored out into the root dynamicdns plugin settings so that other ip_source plugins can opt-in. (I noticed that IPVersions already works this way.)

eliasvasylenko avatar Feb 19 '25 21:02 eliasvasylenko

Thanks for the PR -- sorry, I've been a bit too busy to review it lately.

It's on my list to circle back to it, but if anyone else would like to do a review in the meantime I'd welcome it!

mholt avatar Feb 28 '25 19:02 mholt

Sorry for letting this languish for so long! I hope it's not too much effort to re-review this to remind yourself what the heck I was trying to do here.

eliasvasylenko avatar May 21 '25 22:05 eliasvasylenko

Any chance of a merge?

eliasvasylenko avatar Oct 07 '25 20:10 eliasvasylenko

Sorry -- what a year. Just one thing that doesn't quite sit right with me, and it's a very little thing I admit, but curious if you agree and then we can move forward on it 👍

I do agree, no problem at all, I'm sure you've had much more important things to do than this little PR :) appreciate your time

eliasvasylenko avatar Oct 17 '25 19:10 eliasvasylenko