Error()) return nil, err } } else { config, err = serial.LoadJSONConfig(strings.NewReader(configStr)) if err != nil { log.Println(configStr, err.Error()) return nil, err } } c, err := core.New(config) if err != nil { return nil, err } instance := &NekoV2RayInstance{ ...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter y...
基于Qt/C++ 的跨平台代理配置管理器 / v2ray sing-box GUI客户端 / Qt/C++ based cross-platform proxy configuration manager / v2ray sing-box GUI client - nekoray/ui/mainwindow.cpp at main · PinQcchio/nekoray
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...
@@ -44,7 +48,7 @@ func (s *server) Start(ctx context.Context, in *gen.LoadConfigReq) (out *gen.Err return } instance, instance_cancel, err = box_main.Create([]byte(in.CoreConfig), true) instance, instance_cancel, err = boxmain.Create([]byte(in.CoreConfig), true) if instance...
load_control_force) return false; bool ok = file.open(QIODevice::ReadOnly); if (!ok) { MessageBoxWarning("error", "can not open config " + fn + "\n" + file.errorString()); } else { last_save_content = file.readAll(); FromJsonBytes(last_save_content); } file.close(); ...
error + "\n" + resp.data)); return; } @@ -380,7 +381,7 @@ namespace NekoRay::sub { group->Save(); // if (dataStore->sub_clear) { showLog(QObject::tr("Clearing servers...")); MW_show_log(QObject::tr("Clearing servers...")); for (const auto &profile: in) { ...
@@ -54,13 +55,7 @@ func (s *server) Start(ctx context.Context, in *gen.LoadConfigReq) (out *gen.Err writer_ = reflect.NewAt(writer_.Type(), unsafe.Pointer(writer_.UnsafeAddr())).Elem() // get unexported io.Writer writer_.Set(reflect.ValueOf(neko_log.LogWriter)) // V2ray ...
if (result->error.isEmpty()) { auto source = qjs::ReadHookJS(); if (!source.isEmpty()) { qjs::QJS js(source); auto js_result = js.EvalFunction("hook.hook_core_config", QJsonObject2QString(result->coreConfig, true)); auto js_result_json = QString2QJsonObject(js_result); if...
auto child = n[key]; if (child.IsDefined()) return child; } return {}; }#endif// https://github.com/Dreamacro/clash/wiki/configuration void RawUpdater::updateClash(const QString &str) { #ifndef NKR_NO_YAML try { auto proxies = YAML::Load(str.toStdString())["proxies"]...