(self)
return proot_netmap_list
Get mapping of TCP/IP ports
Get mapping of TCP/IP ports
Get mapping of TCP / IP ports
def _get_network_map(self):
        """Get mapping of TCP/IP ports"""
        proot_netmap_list = []
        for (cont_port, host_port) in list(self._get_portsmap().items()):
            proot_netmap_list.extend(["-p", "%d:%d" % (cont_port, host_port)])
        if self.opt["netcoop"]:
            proot_netmap_list.extend(["-n", ])
        return proot_netmap_list
def _get_network_map ( self ) : proot_netmap_list = [ ] for ( cont_port , host_port ) in list ( self . _get_portsmap ( ) . items ( ) ) : proot_netmap_list . extend ( [ "-p" , "%d:%d" % ( cont_port , host_port ) ] ) if self . opt [ "netcoop" ] : proot_netmap_list . extend ( [ "-n" , ] ) return proot_netmap_list