crash.software
Projects
Pull Requests
Issues
Builds
sing-box
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
sing-box
Files
🤬
Sign In
c7f89ad8
ROOT
/
inbound
/
trojan.go
Search
History
237 lines
|
ISO-8859-1
|
7 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
adapter.Inbound
_
:
adapter.InjectableInbound
Trojan
myInboundAdapter
service
:
*trojan
Service
:
[int] users
option.TrojanUser
tlsConfig
:
tls.ServerConfig
fallbackAddr
:
M.Socksaddr
fallbackAddrTLSNextProto
:
map[string]M.Socksaddr
transport
:
adapter.V2RayServerTransport
NewTrojan
(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.TrojanInboundOptions)
:
(*Trojan, error)
_
:
adapter.V2RayServerTransportHandler
trojanTransportHandler
*Trojan
Start
()
:
error
Close
()
:
error
newTransportConnection
(ctx context.Context, conn net.Conn, metadata adapter.InboundContext)
:
error
NewConnection
(ctx context.Context, conn net.Conn, metadata adapter.InboundContext)
:
error
NewPacketConnection
(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext)
:
error
newConnection
(ctx context.Context, conn net.Conn, metadata adapter.InboundContext)
:
error
fallbackConnection
(ctx context.Context, conn net.Conn, metadata adapter.InboundContext)
:
error
newPacketConnection
(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext)
:
error
*trojanTransportHandler
NewConnection
(ctx context.Context, conn net.Conn, metadata M.Metadata)
:
error
FallbackConnection
(ctx context.Context, conn net.Conn, metadata M.Metadata)
:
error
All occurrences
Please wait...
Page is in error, reload to recover