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

Method _addrinfo

sshuttle/server.py:190–194  ·  view source on GitHub ↗
(peer, port)

Source from the content-addressed store, hash-verified

188
189 @staticmethod
190 def _addrinfo(peer, port):
191 if int(port) == 0:
192 port = 53
193 family, _, _, _, sockaddr = socket.getaddrinfo(peer, port)[0]
194 return (family, sockaddr)
195
196 def try_send(self):
197 if self.tries >= 3:

Callers 2

__init__Method · 0.95
try_sendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected