Closed spflaumer closed 1 year ago
Why are \ preceding all dots in the default blocklist definitions?
Why are \ preceding all dots in the default blocklist definitions?
IIRC it's needed to represent a literal period as its parsed as regex.
I think while your implementation works, ini is a bad fit for most modern config files. I'd used either yaml or json and marshal/unmarshal it to a struct with struct tags.
makes sense. i'll rewrite the config to use yaml or toml then (depending on what's easier and more suitable)
i feel like toml might be easier overall as it appears to be more straightforward, so i will rewrite the config as toml
Currently only the HTTPSBlockList, TelemetryBlockList and ExcludeLog Keys work. If no config file is specified default options are used. proxy.Start() configures itself fully.