MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / check_host

Function check_host

sshuttle/hostwatch.py:187–191  ·  view source on GitHub ↗
(hostname)

Source from the content-addressed store, hash-verified

185
186
187def check_host(hostname):
188 if _is_ip(hostname):
189 _enqueue(_check_revdns, hostname)
190 else:
191 _enqueue(_check_dns, hostname)
192
193
194def _enqueue(op, *args):

Callers 5

_check_etc_hostsFunction · 0.85
_check_revdnsFunction · 0.85
_check_dnsFunction · 0.85
_check_netstatFunction · 0.85
hw_mainFunction · 0.85

Calls 2

_is_ipFunction · 0.85
_enqueueFunction · 0.85

Tested by

no test coverage detected