aboutsummaryrefslogtreecommitdiff
path: root/middleware/kubernetes/handler.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-02-07 18:01:16 +0000
committerGravatar GitHub <noreply@github.com> 2017-02-07 18:01:16 +0000
commitdbe1b2510d609bf37b0874f0aafa91e982cdc5c2 (patch)
tree90762f068772ec41ca027c212227aa49a327f821 /middleware/kubernetes/handler.go
parente8ebcd3cfddde935ba163e26cd035f902051044f (diff)
downloadcoredns-dbe1b2510d609bf37b0874f0aafa91e982cdc5c2.tar.gz
coredns-dbe1b2510d609bf37b0874f0aafa91e982cdc5c2.tar.zst
coredns-dbe1b2510d609bf37b0874f0aafa91e982cdc5c2.zip
middleware/proxy: fix except keyword (#505)
Fix the except keyword usage - the config would allow it, but it was not enforced in the code. Turns out that **FROM** was also not enforced, fix both, by (basically) copying the code from Caddy. Update the README and tests. Locally test as well, shows that this works: ~~~ .:1053 { proxy miek.nl 8.8.8.8:53 { except a.miek.nl } proxy a.miek.nl 8.8.4.4:53 errors stdout log stdout } ~~~ And gives the desired results, not having a proxy line for `a.miek.nl` results in a SERVFAIL (as expected). Fixes #502
Diffstat (limited to 'middleware/kubernetes/handler.go')
0 files changed, 0 insertions, 0 deletions