mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2026-01-06 19:19:02 +08:00
Fix issue #1139
This commit is contained in:
parent
4f45617666
commit
dff7e3e53c
@ -6,6 +6,7 @@
|
|||||||
#include "db/traffic/TrafficLooper.hpp"
|
#include "db/traffic/TrafficLooper.hpp"
|
||||||
#include "rpc/gRPC.h"
|
#include "rpc/gRPC.h"
|
||||||
#include "ui/widget/MessageBoxTimer.h"
|
#include "ui/widget/MessageBoxTimer.h"
|
||||||
|
#include "sys/linux/LinuxCap.h"
|
||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
@ -284,6 +285,9 @@ void MainWindow::neko_start(int _id) {
|
|||||||
if (NekoGui::dataStore->prepare_exit) return;
|
if (NekoGui::dataStore->prepare_exit) return;
|
||||||
|
|
||||||
auto ents = get_now_selected_list();
|
auto ents = get_now_selected_list();
|
||||||
|
if (IS_NEKO_BOX_INTERNAL_TUN)
|
||||||
|
auto ret = Linux_Pkexec_SetCapString(NekoGui::FindNekoBoxCoreRealPath(), "cap_net_admin-ep");
|
||||||
|
|
||||||
auto ent = (_id < 0 && !ents.isEmpty()) ? ents.first() : NekoGui::profileManager->GetProfile(_id);
|
auto ent = (_id < 0 && !ents.isEmpty()) ? ents.first() : NekoGui::profileManager->GetProfile(_id);
|
||||||
if (ent == nullptr) return;
|
if (ent == nullptr) return;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user