mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
chore: add comments to export functions
This commit is contained in:
1 parent
417ac556f7
commit
8a2e95b17e
9 files changed
+33
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
package obfs
|
||||
|
||||
import (
|
||||
import (
|
||||
"math/rand"
|
||||
|
||||
"github.com/nadoo/glider/proxy/ssr/internal/ssr"
|
||||
@@ -80,4 +80,4 @@ func (r *randomHead) Decode(data []byte) (decodedData []byte, needSendBack bool,
|
||||
|
||||
func (r *randomHead) GetOverhead() int {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
@@ -218,8 +218,8 @@ func (t *tls12TicketAuth) Encode(data []byte) (encodedData []byte, err error) {
|
||||
pdata -= 2
|
||||
l += 2
|
||||
encodedData[pdata-1] = 0x16 // tls handshake
|
||||
pdata -= 1
|
||||
l += 1
|
||||
// pdata -= 1
|
||||
// l += 1
|
||||
|
||||
t.sendSaver = packData(t.sendSaver, data)
|
||||
t.handshakeStatus = 1
|
||||
|
||||
Reference in new issue
Block a user