mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-14 17:41:28 +03:00
opt assert for debug (#12420)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -1583,7 +1583,9 @@ String bool2option(String option, bool b) {
|
|||||||
option == kOptionForceAlwaysRelay) {
|
option == kOptionForceAlwaysRelay) {
|
||||||
res = b ? 'Y' : defaultOptionNo;
|
res = b ? 'Y' : defaultOptionNo;
|
||||||
} else {
|
} else {
|
||||||
assert(false);
|
if (option != kOptionEnableUdpPunch && option != kOptionEnableIpv6Punch) {
|
||||||
|
assert(false);
|
||||||
|
}
|
||||||
res = b ? 'Y' : 'N';
|
res = b ? 'Y' : 'N';
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user