forked from mirrors/rustdesk
opt assert for debug (#12420)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
9409912344
commit
2282c8e308
1 changed files with 3 additions and 1 deletions
|
|
@ -1583,7 +1583,9 @@ String bool2option(String option, bool b) {
|
|||
option == kOptionForceAlwaysRelay) {
|
||||
res = b ? 'Y' : defaultOptionNo;
|
||||
} else {
|
||||
assert(false);
|
||||
if (option != kOptionEnableUdpPunch && option != kOptionEnableIpv6Punch) {
|
||||
assert(false);
|
||||
}
|
||||
res = b ? 'Y' : 'N';
|
||||
}
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue