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;