Skip to content
/
zhenyi
/
gitdata-core
Explore
Sign in
Sign up
Sign in
Explore
Create an account
Light mode
Dark mode
Themes
zhenyi
gitdata-core
Code
Issues
Pull requests
Commits
Branches
Tags
Releases
Activity
Star
0
Fork
0
Clone
HTTPS
SSH
SSH needs a key in
your settings
.
Download ZIP
163952e
Browse branches and tags
gitdata-core
/
lib
/
auth
/
src
/
share
/
net.rs
Z
ZhenYi
refactor: rename files and modules for improved organization and clarity
163952e
5 days ago
6 lines
266 B
Rust
Blame
Raw
//! 网络地址判定:loopback 语义在 crate 内保持单一实现。
/// 主机名是否为 loopback:`localhost`(大小写不敏感)或可解析为 loopback IP 地址。
pub
fn
is_loopback_host
(host:
&
str
) ->
bool
{
config::is_loopback_host(host)
}