torrent: disable upnp, natpmp.
This commit is contained in:
parent
0961cad716
commit
84d89ce5af
1 changed files with 2 additions and 4 deletions
|
@ -122,10 +122,8 @@ class TorrentSession:
|
||||||
async def bind(self, interface: str = '0.0.0.0', port: int = 10889):
|
async def bind(self, interface: str = '0.0.0.0', port: int = 10889):
|
||||||
settings = {
|
settings = {
|
||||||
'listen_interfaces': f"{interface}:{port}",
|
'listen_interfaces': f"{interface}:{port}",
|
||||||
'enable_outgoing_utp': True,
|
'enable_natpmp': False,
|
||||||
'enable_incoming_utp': True,
|
'enable_upnp': False
|
||||||
'enable_outgoing_tcp': False,
|
|
||||||
'enable_incoming_tcp': False
|
|
||||||
}
|
}
|
||||||
self._session = await self._loop.run_in_executor(
|
self._session = await self._loop.run_in_executor(
|
||||||
self._executor, libtorrent.session, settings # pylint: disable=c-extension-no-member
|
self._executor, libtorrent.session, settings # pylint: disable=c-extension-no-member
|
||||||
|
|
Loading…
Reference in a new issue