swift-nio-extras
swift-nio-extras copied to clipboard
NIOWritePCAPHandler crashes if used with UNIX Domain Sockets
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.