mirror of
https://git.zx2c4.com/wireguard-tools
synced 2026-02-18 18:18:02 -05:00
If DNS= has an IP in it, treat it as a DNS server. If DNS= has a non-IP in it, treat it as a DNS search domain. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> |
||
|---|---|---|
| .. | ||
| gui | ||
| fuzz.c | ||
| highlight.c | ||
| highlighter.c | ||
| highlighter.h | ||
| Makefile | ||
| README | ||
wg(8) and wg-quick(8) syntax highlighter library
================================================
highlighter.c contains a simple portable highlighter for the wg(8) and
wg-quick(8) configuration files. Simply copy `highlight.c` and
`highlight.h` into your project wholesale.
As a demo, a simple console highlighter program is included, alongside a
simple Qt5 GUI app to show its usage in realtime.
There is also a basic fuzzer, because why not?
Usage:
$ make
$ ./highlight < path/to/tunnel.conf
$ make gui
$ ./gui/highlight
$ make fuzz
$ ./fuzz -workers=$(nproc) -jobs=$(nproc) ./corpus