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
f680d0ac
ROOT
/
common
/
tls
/
reality_client.go
Search
History
232 lines
|
ISO-8859-1
|
5 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
ConfigCompat
RealityClientConfig
uClient
:
*UTLSClientConfig
publicKey
:
[]byte
shortID
:
[8]byte
NewRealityClient
(router adapter.Router, serverAddress string, options option.OutboundTLSOptions)
:
(*RealityClientConfig, error)
realityClientFallback
(uConn net.Conn, serverName string, fingerprint utls.ClientHelloID)
realityVerifier
utls.UConn
serverName
:
string
authKey
:
[]byte
verified
:
bool
*RealityClientConfig
ServerName
()
:
string
SetServerName
(serverName string)
NextProtos
()
:
[]string
SetNextProtos
(nextProto []string)
Config
()
:
(*STDConfig, error)
Client
(conn net.Conn)
:
(Conn, error)
ClientHandshake
(ctx context.Context, conn net.Conn)
:
(aTLS.Conn, error)
SetSessionIDGenerator
(generator func(clientHello []byte, sessionID []byte) error)
Clone
()
:
Config
*realityVerifier
VerifyPeerCertificate
(rawCerts [][]byte, verifiedChains [][]*x509.Certificate)
:
error
All occurrences
Please wait...
Page is in error, reload to recover