docker: added scripts to publish docker image

This commit is contained in:
nadoo committed 2020-11-12 22:08:02 +08:00
1 parent 4887089a4b
commit 453fe925b3
8 files changed
+93 -19

No files matched your search

+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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
View File
@@ -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()