Skip to content

Commit

Permalink
Fix some lint
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Jun 19, 2024
1 parent c92e166 commit ed9ee1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/daemon/wireguardutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bool WireguardUtils::excludeLocalNetworks(const QList<IPAddress>& addresses) {
bool result = true;
for (auto prefix : IPAddress::excludeAddresses(defaultRoutes, addresses)) {
if (!updateRoutePrefix(prefix)) {
result = false;
result = false;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/platforms/linux/daemon/wireguardutilslinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ bool WireguardUtilsLinux::updateRoutePrefix(const IPAddress& prefix) {
}

return rtmSendRoute(RTM_NEWROUTE, prefix, RTN_UNICAST,
NLM_F_CREATE | NLM_F_REPLACE);
NLM_F_CREATE | NLM_F_REPLACE);
}

bool WireguardUtilsLinux::deleteRoutePrefix(const IPAddress& prefix) {
Expand Down

0 comments on commit ed9ee1b

Please sign in to comment.