From 23a37100f121edd0c1291c4a78901662eae5d58b Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 5 Jun 2024 13:35:20 -0700 Subject: Integration tests and "\r\n" DOS-style line feeds - Parse \r\n line feeds - Add simple integration tests to ensure regressions do not occur - Add test "wg1" for \r\n parsing --- test/example_config/wg1/wg1.netdev | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/example_config/wg1/wg1.netdev (limited to 'test/example_config/wg1/wg1.netdev') diff --git a/test/example_config/wg1/wg1.netdev b/test/example_config/wg1/wg1.netdev new file mode 100644 index 0000000..c8cf14b --- /dev/null +++ b/test/example_config/wg1/wg1.netdev @@ -0,0 +1,16 @@ +# Autogenerated by wg2nd +[NetDev] +Name = wg1 +Kind = wireguard +Description = wg1 - wireguard tunnel + +[WireGuard] +PrivateKeyFile = /etc/systemd/network/7MQMU4C7JODRWLDIICKQPWRARIMU5IFM54B2BGXAF42WYVL2RYQA====.privkey +FirewallMark = 0x25db0647 + +[WireGuardPeer] +PublicKey = WBSnuq6Vswxz5G5zz9pUt60ZSA+JfZ1iTXdg0RJGjks= +Endpoint = 128.45.210.64:51821 +AllowedIPs = 0.0.0.0/0 +AllowedIPs = ::0/0 + -- cgit v1.2.3