mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
Feat: add transport original name to listen unix (#2048)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user