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

Method __init__

server.py:117–128  ·  view source on GitHub ↗
(self, mux, chan, request)

Source from the content-addressed store, hash-verified

115
116class DnsProxy(Handler):
117 def __init__(self, mux, chan, request):
118 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
119 Handler.__init__(self, [sock])
120 self.timeout = time.time()+30
121 self.mux = mux
122 self.chan = chan
123 self.tries = 0
124 self.peer = None
125 self.request = request
126 self.sock = sock
127 self.sock.setsockopt(socket.SOL_IP, socket.IP_TTL, 42)
128 self.try_send()
129
130 def try_send(self):
131 if self.tries >= 3:

Callers

nothing calls this directly

Calls 1

try_sendMethod · 0.95

Tested by

no test coverage detected