switch core support

add nekobox_core

linux: use sing-box for vpn
This commit is contained in:
arm64v8a
2022-09-24 22:42:22 +08:00
parent a083010795
commit 9ebf6fe807
87 changed files with 3496 additions and 1903 deletions

View File

@@ -56,7 +56,8 @@ namespace NekoRay {
// Saved
// Misc
QString core_path = "../nekoray_core";
int neko_core = CoreType::V2RAY;
QString log_level = "warning";
QString user_agent = "Nekoray/1.0 (Prefer Clash Format)";
bool sub_use_proxy = false;
@@ -125,3 +126,5 @@ namespace NekoRay {
extern DataStore *dataStore;
}
#define IS_NEKO_BOX (NekoRay::dataStore->neko_core == NekoRay::CoreType::SING_BOX)