fix: fixed complex config with string as port causing system proxy to fail

This commit is contained in:
Qv2ray-dev 2020-07-11 15:14:30 +08:00
parent 8c6735c3a3
commit 1c0ec09ae9
No known key found for this signature in database
GPG Key ID: E7FAEFAFCD031D4B
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
5770 5771

View File

@ -172,9 +172,9 @@ namespace Qv2ray::core
{ {
const auto &inbound = inboundVal.toObject(); const auto &inbound = inboundVal.toObject();
inboundPorts[inbound["tag"].toString()] = { inboundPorts[inbound["tag"].toString()] = {
inbound["protocol"].toString(), // inbound["protocol"].toString(), //
inbound["listen"].toString(), // inbound["listen"].toString(), //
inbound["port"].toInt() // inbound["port"].toVariant().toInt() //
}; };
} }
return inboundPorts; return inboundPorts;