mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 02:16:00 +02:00
fix custom client show ip whiltelist warning (#8778)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
4723d6a830
commit
22f3425ace
3 changed files with 10 additions and 10 deletions
|
@ -3425,6 +3425,12 @@ get defaultOptionWhitelist => isCustomClient ? ',' : '';
|
|||
get defaultOptionAccessMode => isCustomClient ? 'custom' : '';
|
||||
get defaultOptionApproveMode => isCustomClient ? 'password-click' : '';
|
||||
|
||||
bool whitelistNotEmpty() {
|
||||
// https://rustdesk.com/docs/en/self-host/client-configuration/advanced-settings/#whitelist
|
||||
final v = bind.mainGetOptionSync(key: kOptionWhitelist);
|
||||
return v != '' && v != ',';
|
||||
}
|
||||
|
||||
// `setMovable()` is only supported on macOS.
|
||||
//
|
||||
// On macOS, the window can be dragged by the tab bar by default.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue