mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
docker: added scripts to publish docker image
This commit is contained in:
1 parent
4887089a4b
commit
453fe925b3
8 files changed
+93
-19
No files matched your search
@@ -21,7 +21,7 @@ type StreamConnCipher interface {
|
||||
StreamConn(net.Conn) net.Conn
|
||||
}
|
||||
|
||||
// StreamConnCipher is the packet connection cipher.
|
||||
// PacketConnCipher is the packet connection cipher.
|
||||
type PacketConnCipher interface {
|
||||
PacketConn(net.PacketConn) net.PacketConn
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ func (t *tls12TicketAuth) Encode(data []byte) (encodedData []byte, err error) {
|
||||
encodedData[pdata-1] = uint8(l)
|
||||
encodedData[pdata-2] = uint8(l >> 8)
|
||||
pdata -= 2
|
||||
l += 2
|
||||
// l += 2
|
||||
encodedData[pdata-1] = 0x1
|
||||
encodedData[pdata-2] = 0x3 // tls version
|
||||
pdata -= 2
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ func (c *ClientConn) Handshake(host, path, origin string) error {
|
||||
|
||||
_, code, _, ok := parseFirstLine(line)
|
||||
if !ok || code != "101" {
|
||||
return errors.New("[ws] error in ws handshake parseFirstLine: " + line)
|
||||
return errors.New("[ws] error in ws handshake, got wrong response: " + line)
|
||||
}
|
||||
|
||||
respHeader, err := tpr.ReadMIMEHeader()
|
||||
|
||||
Reference in new issue
Block a user