From 1c0ec09ae9a50b665011043f9273ca377c279cb0 Mon Sep 17 00:00:00 2001 From: Qv2ray-dev <59914293+Qv2ray-dev@users.noreply.github.com> Date: Sat, 11 Jul 2020 15:14:30 +0800 Subject: [PATCH] fix: fixed complex config with string as port causing system proxy to fail --- makespec/BUILDVERSION | 2 +- src/core/CoreUtils.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index f6cc210c..7974cb62 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -5770 +5771 diff --git a/src/core/CoreUtils.cpp b/src/core/CoreUtils.cpp index 0cf50156..6f76bf87 100644 --- a/src/core/CoreUtils.cpp +++ b/src/core/CoreUtils.cpp @@ -172,9 +172,9 @@ namespace Qv2ray::core { const auto &inbound = inboundVal.toObject(); inboundPorts[inbound["tag"].toString()] = { - inbound["protocol"].toString(), // - inbound["listen"].toString(), // - inbound["port"].toInt() // + inbound["protocol"].toString(), // + inbound["listen"].toString(), // + inbound["port"].toVariant().toInt() // }; } return inboundPorts;