Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _new_connection(self, channel, src_addr, dest_addr):
# Wraps the channel as a socket-like object that _forward() can use
socklike = self._ChannelWrapper(channel)
t = threading.Thread(target=self._forward,
args=(socklike, src_addr))
t.setDaemon(True)
t.start()