Skip to contentSkip to conversation

conf: fix typo in parser_test

PATCH New Daniel Kessler 1 participant 1 message Feb 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conf: fix typo in parser_test

---
 conf/parser_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/parser_test.go +1 -1
index 25d906fd..36985c5f 100644
@@ -80,7 +80,7 @@ func TestFromWgQuick(t *testing.T) {
 	conf, err := FromWgQuick(testInput, "test")
 	if noError(t, err) {
 		lenTest(t, conf.Interface.Addresses, 2)
-		contains(t, conf.Interface.Addresses, netip.PrefixFrom(netip.AddrFrom4([4]byte{0, 10, 0, 1}), 16))
+		contains(t, conf.Interface.Addresses, netip.PrefixFrom(netip.AddrFrom4([4]byte{10, 10, 0, 1}), 16))
 		contains(t, conf.Interface.Addresses, netip.PrefixFrom(netip.AddrFrom4([4]byte{10, 192, 122, 1}), 24))
 		equal(t, "yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=", conf.Interface.PrivateKey.String())
 		equal(t, uint16(51820), conf.Interface.ListenPort)
Signature · 1 line
2.43.0.687.g38aa6559b0-goog