fix(wireguard): specify IP family for new route (#2629)

This commit is contained in:
Quentin McGaw
2025-10-30 17:14:45 +01:00
parent 0f19bcfebd
commit 5e9ae9fa1f
2 changed files with 7 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ func Test_Wireguard_addRoute(t *testing.T) {
expectedRoute: netlink.Route{
LinkIndex: linkIndex,
Dst: ipPrefix,
Family: netlink.FamilyV4,
Table: firewallMark,
},
},
@@ -49,6 +50,7 @@ func Test_Wireguard_addRoute(t *testing.T) {
expectedRoute: netlink.Route{
LinkIndex: linkIndex,
Dst: ipPrefix,
Family: netlink.FamilyV4,
Table: firewallMark,
},
routeAddErr: errDummy,