swift-nio-extras icon indicating copy to clipboard operation
swift-nio-extras copied to clipboard

NIOWritePCAPHandler crashes if used with UNIX Domain Sockets

Open weissi opened this issue 4 years ago • 0 comments

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.

weissi avatar Jun 12 '20 13:06 weissi