Commit 50c2b86f authored by Brian May's avatar Brian May

Rename onaccept to onaccept_tcp as it is tcp specific.

parent 97dca422
...@@ -185,7 +185,7 @@ def expire_connections(now, mux): ...@@ -185,7 +185,7 @@ def expire_connections(now, mux):
debug3('Remaining DNS requests: %d\n' % len(dnsreqs)) debug3('Remaining DNS requests: %d\n' % len(dnsreqs))
def onaccept(listener, mux, handlers): def onaccept_tcp(listener, mux, handlers):
global _extra_fd global _extra_fd
try: try:
sock,srcip = listener.accept() sock,srcip = listener.accept()
...@@ -321,7 +321,7 @@ def _main(tcp_listener, fw, ssh_cmd, remotename, python, latency_control, ...@@ -321,7 +321,7 @@ def _main(tcp_listener, fw, ssh_cmd, remotename, python, latency_control,
fw.sethostip(name, ip) fw.sethostip(name, ip)
mux.got_host_list = onhostlist mux.got_host_list = onhostlist
handlers.append(Handler([tcp_listener], lambda: onaccept(tcp_listener, mux, handlers))) handlers.append(Handler([tcp_listener], lambda: onaccept_tcp(tcp_listener, mux, handlers)))
if dns_listener: if dns_listener:
handlers.append(Handler([dns_listener], lambda: ondns(dns_listener, mux, handlers))) handlers.append(Handler([dns_listener], lambda: ondns(dns_listener, mux, handlers)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment