mirror of
https://github.com/SagerNet/sing-shadowsocks.git
synced 2025-04-03 20:07:40 +03:00
Add upstream func to user context
This commit is contained in:
parent
574f87527b
commit
c2032fe11c
3 changed files with 7 additions and 3 deletions
|
@ -41,6 +41,10 @@ type UserContext[U comparable] struct {
|
|||
User U
|
||||
}
|
||||
|
||||
func (c *UserContext[U]) Upstream() any {
|
||||
return c.Context
|
||||
}
|
||||
|
||||
type ServerConnError struct {
|
||||
net.Conn
|
||||
Source M.Socksaddr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue