wireguard-tools/contrib/highlighter
Jason A. Donenfeld 7f236c7957 wg-quick: support dns search domains
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>
2020-05-09 00:29:53 -06:00
..
gui
fuzz.c global: bump copyright 2020-01-02 19:52:25 +01:00
highlight.c global: bump copyright 2020-01-02 19:52:25 +01:00
highlighter.c wg-quick: support dns search domains 2020-05-09 00:29:53 -06:00
highlighter.h global: bump copyright 2020-01-02 19:52:25 +01:00
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