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
4328c535
ROOT
/
outbound
/
direct.go
Search
History
215 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
adapter.Outbound
_
:
N.ParallelDialer
Direct
myOutboundAdapter
dialer
:
N.Dialer
domainStrategy
:
dns.DomainStrategy
fallbackDelay
:
time.Duration
overrideOption
:
int
overrideDestination
:
M.Socksaddr
proxyProto
:
uint8
NewDirect
(router adapter.Router, logger log.ContextLogger, tag string, options option.DirectOutboundOptions)
:
(*Direct, error)
overridePacketConn
N.NetPacketConn
overrideDestination
:
M.Socksaddr
*Direct
DialContext
(ctx context.Context, network string, destination M.Socksaddr)
:
(net.Conn, error)
DialParallel
(ctx context.Context, network string, destination M.Socksaddr, destinationAddresses []netip.Addr)
:
(net.Conn, error)
ListenPacket
(ctx context.Context, destination M.Socksaddr)
:
(net.PacketConn, error)
NewConnection
(ctx context.Context, conn net.Conn, metadata adapter.InboundContext)
:
error
NewPacketConnection
(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext)
:
error
*overridePacketConn
WritePacket
(buffer *buf.Buffer, destination M.Socksaddr)
:
error
WriteTo
(p []byte, addr net.Addr)
:
(n int, err error)
Upstream
()
:
any
All occurrences
Please wait...
Page is in error, reload to recover