glider/proxy/ssr/internal/obfs/http_post.go
2020-10-29 22:47:57 +08:00

21 lines
322 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)),
methodGet: false,
}
return t
}