From 77c540a61bcc22734316e6284e3f52a6eebc5d64 Mon Sep 17 00:00:00 2001 From: Hork Date: Sat, 27 Apr 2019 08:07:18 +0800 Subject: [PATCH] Allow suid. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 41667f31..511902cd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,7 @@ void init() } int main(int argc, char *argv[]) { + QCoreApplication::setSetuidAllowed(true); QApplication a(argc, argv); QDir::setCurrent(QFileInfo(QCoreApplication::applicationFilePath()).path()); RunGuard guard("Hv2ray");