glider/vendor/github.com/sun8911879/shadowsocksR/obfs/http_post.go
2018-09-02 22:16:24 +08:00

20 lines
321 B
Go

package obfs
import (
"math/rand"
)
func init() {
register("http_post", newHttpPost)
}
// newHttpPost create a http_post object
func newHttpPost() IObfs {
// newHttpSimple create a http_simple object
t := &httpSimplePost{
userAgentIndex: rand.Intn(len(requestUserAgent)),
getOrPost: false,
}
return t
}