marc1307 / tailscale-cloudflare-dnssync

Syncs Tailscale/Headscale host IPs to a cloudflare hosted dns zone
MIT License
159 stars 15 forks source link

Added support for shell environment variables #5

Closed tail closed 2 years ago

tail commented 2 years ago

Currently the environment variables have hyphens that can't be used in some environments (e.g., sourcing in a shell or using EnvironmentFile in systemd). This adds an additional check to see if the a variant with an underscore ("_") instead of a hyphen ("-") is present.