direct access port editable

This commit is contained in:
rustdesk committed 2022-02-19 15:30:09 +08:00
1 parent 1c7f9b6f45
commit 4e9a96dad9
4 files changed
+90 -19

No files matched your search

+1 -1
View File
@@ -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)
}