MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / onhostlist

Function onhostlist

client.py:311–316  ·  view source on GitHub ↗
(hostlist)

Source from the content-addressed store, hash-verified

309 mux.got_routes = onroutes
310
311 def onhostlist(hostlist):
312 debug2('got host list: %r\n' % hostlist)
313 for line in hostlist.strip().split():
314 if line:
315 name,ip = line.split(',', 1)
316 fw.sethostip(name, ip)
317 mux.got_host_list = onhostlist
318
319 handlers.append(Handler([listener], lambda: onaccept(listener, mux, handlers)))

Callers

nothing calls this directly

Calls 2

debug2Function · 0.85
sethostipMethod · 0.80

Tested by

no test coverage detected