direct access port editable

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

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)
}