add check for route prefix type
This commit is contained in:
parent
764d432453
commit
25f7356a1a
1 changed files with 2 additions and 1 deletions
|
@ -269,7 +269,8 @@ bool WireguardUtilsWindows::updateRoutePrefix(const IPAddress& prefix) {
|
|||
}
|
||||
|
||||
// Case for ipv6 route with disabled ipv6
|
||||
if (result == ERROR_NOT_FOUND) {
|
||||
if (prefix.address().protocol() == QAbstractSocket::IPv6Protocol
|
||||
&& result == ERROR_NOT_FOUND) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue