mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-19 14:40:09 +08:00
Update ui/mainwindow_grpc.cpp
This commit is contained in:
parent
09e9604006
commit
0ceda1de0e
@ -288,7 +288,7 @@ void MainWindow::neko_start(int _id) {
|
|||||||
|
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
if (IS_NEKO_BOX_INTERNAL_TUN)
|
if (IS_NEKO_BOX_INTERNAL_TUN)
|
||||||
auto ret = Linux_Pkexec_SetCapString(NekoGui::FindNekoBoxCoreRealPath(), "cap_net_admin-ep");
|
Linux_Pkexec_SetCapString(NekoGui::FindNekoBoxCoreRealPath(), "cap_net_admin-ep");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
auto ent = (_id < 0 && !ents.isEmpty()) ? ents.first() : NekoGui::profileManager->GetProfile(_id);
|
auto ent = (_id < 0 && !ents.isEmpty()) ? ents.first() : NekoGui::profileManager->GetProfile(_id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user