chore: add comments to export functions

This commit is contained in:
nadoo committed 2020-11-06 22:47:33 +08:00
1 parent 417ac556f7
commit 8a2e95b17e
9 files changed
+33 -12

No files matched your search

+2 -2
View File
@@ -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
}
}
+2 -2
View File
@@ -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