general: add dev_linux conditional build codes

This commit is contained in:
nadoo committed 2018-07-22 18:54:18 +08:00
1 parent ff1fb8c291
commit bb45b671c0
3 files changed
+26 -2

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ import (
_ "net/http/pprof"
_ "github.com/nadoo/glider/proxy/ws"
// _ "github.com/nadoo/glider/proxy/tproxy"
)
func init() {
+5
View File
@@ -0,0 +1,5 @@
package main
import (
_ "github.com/nadoo/glider/proxy/tproxy"
)
+21 -1
View File
@@ -1,4 +1,24 @@
// https://tools.ietf.org/html/rfc6455
// https://tools.ietf.org/html/rfc6455#section-5.2
//
// Frame Format
// 0 1 2 3
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-+-+-+-+-------+-+-------------+-------------------------------+
// |F|R|R|R| opcode|M| Payload len | Extended payload length |
// |I|S|S|S| (4) |A| (7) | (16/64) |
// |N|V|V|V| |S| | (if payload len==126/127) |
// | |1|2|3| |K| | |
// +-+-+-+-+-------+-+-------------+ - - - - - - - - - - - - - - - +
// | Extended payload length continued, if payload len == 127 |
// + - - - - - - - - - - - - - - - +-------------------------------+
// | |Masking-key, if MASK set to 1 |
// +-------------------------------+-------------------------------+
// | Masking-key (continued) | Payload Data |
// +-------------------------------- - - - - - - - - - - - - - - - +
// : Payload Data continued ... :
// + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
// | Payload Data continued ... |
// +---------------------------------------------------------------+
package ws