general: add dev_linux conditional build codes

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

1
dev.go
View File

@ -7,7 +7,6 @@ import (
_ "net/http/pprof" _ "net/http/pprof"
_ "github.com/nadoo/glider/proxy/ws" _ "github.com/nadoo/glider/proxy/ws"
// _ "github.com/nadoo/glider/proxy/tproxy"
) )
func init() { func init() {

5
dev_linux.go Normal file
View File

@ -0,0 +1,5 @@
package main
import (
_ "github.com/nadoo/glider/proxy/tproxy"
)

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 package ws