Feat: add transport original name to listen unix (#2048)

This commit is contained in:
秋のかえで
2022-10-08 09:04:05 +08:00
committed by GitHub
parent 5593fdee09
commit b9a8a7e237
+5
View File
@@ -36,6 +36,11 @@ func ListenUnix(ctx context.Context, address net.Address, settings *MemoryStream
}
protocol := settings.ProtocolName
if originalProtocolName := getOriginalMessageName(settings); originalProtocolName != "" {
protocol = originalProtocolName
}
listenFunc := transportListenerCache[protocol]
if listenFunc == nil {
return nil, newError(protocol, " unix istener not registered.").AtError()