#NEWLINE# def __init__( self , port , app_blame , connection_class = RedirectConnection , handler_selector = default_connection_selector , ssl_handler_selector = default_ssl_connection_selector , data_handler_selector = default_data_selector , block_non_clients = False , ipv6 = False ) : #NEWLINE# #INDENT# self . kill = False #NEWLINE# self . port = port #NEWLINE# self . read_fds = set ( ) #NEWLINE# self . write_fds = set ( ) #NEWLINE# self . ex_fds = set ( ) #NEWLINE# self . _local_server_sockets = [ ] #NEWLINE# self . fds = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . connections = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . connection_class = connection_class #NEWLINE# self . handler_selector = handler_selector #NEWLINE# self . ssl_handler_selector = ssl_handler_selector #NEWLINE# self . data_handler_selector = data_handler_selector #NEWLINE# self . app_blame = app_blame #NEWLINE# self . logger = logging . getLogger ( 'nogotofail.mitm' ) #NEWLINE# self . block_non_clients = block_non_clients #NEWLINE# self . ipv6 = ipv6 #NEWLINE# self . last_reap = time . time ( )