From 84d89ce5afc68dbb65acea0703f397528b2d3ee2 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 29 Jul 2022 21:56:09 -0300 Subject: [PATCH] torrent: disable upnp, natpmp. --- lbry/torrent/session.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lbry/torrent/session.py b/lbry/torrent/session.py index 857540d4c..887dc70da 100644 --- a/lbry/torrent/session.py +++ b/lbry/torrent/session.py @@ -122,10 +122,8 @@ class TorrentSession: async def bind(self, interface: str = '0.0.0.0', port: int = 10889): settings = { 'listen_interfaces': f"{interface}:{port}", - 'enable_outgoing_utp': True, - 'enable_incoming_utp': True, - 'enable_outgoing_tcp': False, - 'enable_incoming_tcp': False + 'enable_natpmp': False, + 'enable_upnp': False } self._session = await self._loop.run_in_executor( self._executor, libtorrent.session, settings # pylint: disable=c-extension-no-member