apple/swift-nio-extras

NIOWritePCAPHandler crashes if used with UNIX Domain Sockets

Aperta

#92 aperta il 12 giu 2020

 (0 commenti) (0 reazioni) (0 assegnatari)Swift (95 fork)auto 404
good first issuekind/bug

Metriche repository

Star
 (250 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor