From 09e9604006d1f540d997892875a2c786f879ccf5 Mon Sep 17 00:00:00 2001 From: Kieran Moy Date: Sat, 4 May 2024 00:42:23 +0800 Subject: [PATCH] Add missing os detection --- ui/mainwindow_grpc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/mainwindow_grpc.cpp b/ui/mainwindow_grpc.cpp index 2cb4d10..ca70693 100644 --- a/ui/mainwindow_grpc.cpp +++ b/ui/mainwindow_grpc.cpp @@ -285,8 +285,11 @@ void MainWindow::neko_start(int _id) { if (NekoGui::dataStore->prepare_exit) return; auto ents = get_now_selected_list(); + +#ifdef Q_OS_LINUX if (IS_NEKO_BOX_INTERNAL_TUN) auto ret = Linux_Pkexec_SetCapString(NekoGui::FindNekoBoxCoreRealPath(), "cap_net_admin-ep"); +#endif auto ent = (_id < 0 && !ents.isEmpty()) ? ents.first() : NekoGui::profileManager->GetProfile(_id); if (ent == nullptr) return;