apple/swift-nio-extras

NIOWritePCAPHandler crashes if used with UNIX Domain Sockets

Aberta

#92 aberto em 12 de jun. de 2020

 (0 comentário) (0 reação) (0 responsável)Swift (95 forks)auto 404
good first issuekind/bug

Métricas do repositório

Stars
 (250 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

When using NIOWritePCAPHandler with UNIX Domain Sockets, it crashes.

That's because UNIX Domain Sockets don't have IP addresses and ports.

If the user passes a fakeLocal/RemoteAddress, everything's good but we should just have a default one in case the user doesn't.

Guia do colaborador