forked from shaba/openuds
Added protection on broken pipe to tunnel
This commit is contained in:
parent
7bed6ac171
commit
e0149900a7
@ -131,7 +131,10 @@ class Proxy:
|
|||||||
|
|
||||||
# Method responsible of proxying requests
|
# Method responsible of proxying requests
|
||||||
async def __call__(self, source, address: typing.Tuple[str, int]) -> None:
|
async def __call__(self, source, address: typing.Tuple[str, int]) -> None:
|
||||||
|
try:
|
||||||
await self.proxy(source, address)
|
await self.proxy(source, address)
|
||||||
|
except Exception as e:
|
||||||
|
logger.error('Error procesing connection from %s: %s', address, e)
|
||||||
|
|
||||||
async def stats(self, full: bool, source, address: typing.Tuple[str, int]) -> None:
|
async def stats(self, full: bool, source, address: typing.Tuple[str, int]) -> None:
|
||||||
# Check valid source ip
|
# Check valid source ip
|
||||||
|
Loading…
Reference in New Issue
Block a user