Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/sshuttle/sshuttle
/ _is_ip
Function
_is_ip
sshuttle/hostwatch.py:33–34 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
31
32
33
def
_is_ip(s):
34
return
re.match(r
'\d+\.\d+\.\d+\.\d+$'
, s)
35
36
37
def
write_host_cache():
Callers
2
_check_etc_hosts
Function · 0.85
check_host
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected