[GH-ISSUE #778] Please fix bool type field UDP from ios_controller.mm #191

Open
opened 2026-10-13 20:14:58 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @Dobrotin on GitHub (Apr 25, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/778

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());
            }
        }
    }
}
Originally created by @Dobrotin on GitHub (Apr 25, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/778 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()); } } } } ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#191
No description provided.