crash.software
Projects
Pull Requests
Issues
Builds
dnstt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dnstt
Files
🤬
Sign In
326771cb
ROOT
/
dnstt-server
/
main.go
Search
History
934 lines
|
UTF-8
|
28 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
idleTimeout
responseTTL
maxResponseDelay
upstreamDialTimeout
maxUDPPayload
base32Encoding
generateKeypair
(privkeyFilename, pubkeyFilename string)
:
(err error)
readKeyFromFile
(filename string)
:
([]byte, error)
handleStream
(stream *smux.Stream, upstream string, conv uint32)
:
error
acceptStreams
(conn *kcp.UDPSession, privkey, pubkey []byte, upstream string)
:
error
acceptSessions
(ln *kcp.Listener, privkey, pubkey []byte, mtu int, upstream string)
:
error
nextPacket
(r *bytes.Reader)
:
([]byte, error)
responseFor
(query *dns.Message, domain dns.Name)
:
(*dns.Message, []byte)
record
Resp
:
*dns.Message
Addr
:
net.Addr
ClientID
:
turbotunnel.ClientID
recvLoop
(domain dns.Name, dnsConn net.PacketConn, ttConn *turbotunnel.QueuePacketConn, ch chan<- *record)
:
error
sendLoop
(dnsConn net.PacketConn, ttConn *turbotunnel.QueuePacketConn, ch <-chan *record, maxEncodedPayload int)
:
error
computeMaxEncodedPayload
(limit int)
:
int
run
(privkey, pubkey []byte, domain dns.Name, upstream string, dnsConn net.PacketConn)
:
error
main
()
All occurrences
Please wait...
Page is in error, reload to recover