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

Method sethostip

client.py:165–169  ·  view source on GitHub ↗
(self, hostname, ip)

Source from the content-addressed store, hash-verified

163 raise Fatal('%r expected STARTED, got %r' % (self.argv, line))
164
165 def sethostip(self, hostname, ip):
166 assert(not re.search(r'[^-\w]', hostname))
167 assert(not re.search(r'[^0-9.]', ip))
168 self.pfile.write('HOST %s,%s\n' % (hostname, ip))
169 self.pfile.flush()
170
171 def done(self):
172 self.pfile.close()

Callers 1

onhostlistFunction · 0.80

Calls 2

flushMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected