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
main
Browse branches and tags
gitdata-core
/
lib
/
infra
/
config
/
src
/
net.rs
Z
ZhenYi
refactor: update input and select class names for consistency across components
6ee2d8b
1 day ago
6 lines
194 B
Rust
Blame
Raw
pub
fn
is_loopback_host
(host:
&
str
) ->
bool
{
host.
eq_ignore_ascii_case
(
"localhost"
)
||
host
.parse::<std::net::IpAddr>()
.
is_ok_and
(|ip| ip.
is_loopback
())
}