mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 00:36:14 +00:00
direct access port editable
This commit is contained in:
1 parent
1c7f9b6f45
commit
4e9a96dad9
4 files changed
+90
-19
No files matched your search
+1
-1
@@ -461,7 +461,7 @@ pub fn get_full_name() -> String {
|
||||
}
|
||||
|
||||
pub fn is_ip(id: &str) -> bool {
|
||||
hbb_common::regex::Regex::new(r"^\d+\.\d+\.\d+\.\d+$")
|
||||
hbb_common::regex::Regex::new(r"^\d+\.\d+\.\d+\.\d+(:\d+)?$")
|
||||
.unwrap()
|
||||
.is_match(id)
|
||||
}
|
||||
Reference in new issue
Block a user