mirror of
https://github.com/nadoo/glider.git
synced 2025-04-11 14:53:15 +08:00
21 lines
325 B
Go
21 lines
325 B
Go
package obfs
|
|
|
|
import (
|
|
"math/rand/v2"
|
|
)
|
|
|
|
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
|
|
}
|