Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chasingboy/Xtools
/ is_lan
Function
is_lan
utils.py:143–147 ·
view source on GitHub ↗
(ip)
Source
from the content-addressed store, hash-verified
141
142
143
def
is_lan(ip):
144
try
:
145
return
ipaddress.ip_address(ip.strip()).is_private or ipaddress.ip_address(ip.strip()).is_loopback
146
except
Exception
as
e:
147
return
False
148
149
150
def
select_ipv4_range(view):
Callers
1
select_ipv4
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected