1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 07:45:29 -05:00

merge user info inbound metadata

This commit is contained in:
Darien Raymond
2018-10-15 08:36:50 +02:00
parent e35e3e6e53
commit 595f3d685e
8 changed files with 42 additions and 26 deletions

View File

@@ -7,6 +7,7 @@ import (
"v2ray.com/core/common/errors"
"v2ray.com/core/common/net"
"v2ray.com/core/common/protocol"
)
// ID of a session.
@@ -34,6 +35,8 @@ type Inbound struct {
Source net.Destination
Gateway net.Destination
Tag string
// User is the user that authencates for the inbound. May be nil if the protocol allows anounymous traffic.
User *protocol.MemoryUser
}
type Outbound struct {