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:
parent
5593fdee09
commit
b9a8a7e237
@ -36,6 +36,11 @@ func ListenUnix(ctx context.Context, address net.Address, settings *MemoryStream
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol := settings.ProtocolName
|
protocol := settings.ProtocolName
|
||||||
|
|
||||||
|
if originalProtocolName := getOriginalMessageName(settings); originalProtocolName != "" {
|
||||||
|
protocol = originalProtocolName
|
||||||
|
}
|
||||||
|
|
||||||
listenFunc := transportListenerCache[protocol]
|
listenFunc := transportListenerCache[protocol]
|
||||||
if listenFunc == nil {
|
if listenFunc == nil {
|
||||||
return nil, newError(protocol, " unix istener not registered.").AtError()
|
return nil, newError(protocol, " unix istener not registered.").AtError()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user