fix: 优化endpoint

This commit is contained in:
shiro.lee
2024-07-04 19:00:23 +08:00
parent 7d0d95b298
commit 0cc9970184
4 changed files with 32 additions and 24 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ pub fn check_local_server_addr(server_addr: &str) -> Result<SocketAddr> {
}
}
return Err(Error::from_string("host in server address should be this server"));
Err(Error::from_string("host in server address should be this server"))
}
pub fn split_host_port(s: &str) -> Result<(String, u16)> {