amnezia-vpn/amnezia-client

Please fix bool type field UDP from ios_controller.mm

Dobrotin opened this issue · 0 comments

Fix bool type field UDP from ios_controller.mm:

foreach(const QString& key, cloak.keys()) {
        if(key == "NumConn" or key == "StreamTimeout"){
            jsonObject.insert(key, cloak.value(key).toInt());
        }else{
            if(key == "UDP"){
                jsonObject.insert(key, cloak.value(key).toBool());
            }else{
                jsonObject.insert(key, cloak.value(key).toString());
            }
        }
    }
}