mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# NekoRay
|
||||
# NekoRay / NekoBox For PC
|
||||
|
||||
Qt based cross-platform GUI proxy configuration manager (backend: v2ray / sing-box)
|
||||
|
||||
|
||||
@@ -151,11 +151,6 @@ int main(int argc, char* argv[]) {
|
||||
":/nekoray",
|
||||
":/icon",
|
||||
});
|
||||
#else
|
||||
QIcon::setThemeSearchPaths(QStringList{
|
||||
":/nekoray",
|
||||
":/icon",
|
||||
});
|
||||
#endif
|
||||
|
||||
// icon for no theme
|
||||
|
||||
@@ -71,7 +71,9 @@ namespace QtGrpc {
|
||||
QNetworkRequest request(callUrl);
|
||||
// request.setAttribute(QNetworkRequest::CacheSaveControlAttribute, false);
|
||||
// request.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::AlwaysNetwork);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
|
||||
request.setAttribute(QNetworkRequest::Http2DirectAttribute, true);
|
||||
#endif
|
||||
request.setHeader(QNetworkRequest::ContentTypeHeader, QLatin1String{"application/grpc"});
|
||||
request.setRawHeader("Cache-Control", "no-store");
|
||||
request.setRawHeader(GrpcAcceptEncodingHeader, QByteArray{"identity,deflate,gzip"});
|
||||
|
||||
@@ -287,7 +287,7 @@ void MainWindow::neko_start(int _id) {
|
||||
if (!NekoGui::dataStore->core_running) {
|
||||
runOnUiThread(
|
||||
[=] {
|
||||
show_log_impl("Try to start the config, but the core has not listened to the grpc port, so restart it...");
|
||||
MW_show_log("Try to start the config, but the core has not listened to the grpc port, so restart it...");
|
||||
core_process->start_profile_when_core_is_up = ent->id;
|
||||
core_process->Restart();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user