1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()