fix: test case, test_if_valid_server (#7903)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2024-05-04 14:06:41 +08:00 committed by GitHub
parent eb81e00d20
commit 890b735985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,8 +259,8 @@ mod tests {
// on Linux, "1" is resolved to "0.0.0.1"
assert!(test_if_valid_server("1.1.1.1", false).is_empty());
assert!(test_if_valid_server("1.1.1.1:1", false).is_empty());
assert!(test_if_valid_server("abcd.com", false).is_empty());
assert!(test_if_valid_server("abcd.com:1", false).is_empty());
assert!(test_if_valid_server("microsoft.com", false).is_empty());
assert!(test_if_valid_server("microsoft.com:1", false).is_empty());
// with proxy
// `:0` indicates `let host = check_port(host, 0);` is called.