mholt / caddy-l4

Layer 4 (TCP/UDP) app for Caddy
Apache License 2.0
922 stars 69 forks source link

Add `not` Matcher #160

Closed mohammed90 closed 10 months ago

mohammed90 commented 10 months ago

Matching negation could be very useful. It's very simple to implement. The contributor could replicate the logic from the Caddy HTTP app here:

https://github.com/caddyserver/caddy/blob/master/modules/caddyhttp/matchers.go#L1187-L1245