2020-07-22 23:02:15 +08:00
|
|
|
package obfs
|
|
|
|
|
2021-02-15 14:32:03 +08:00
|
|
|
import "net"
|
|
|
|
|
2020-07-22 23:02:15 +08:00
|
|
|
type plain struct{}
|
|
|
|
|
|
|
|
func init() {
|
2021-02-15 14:32:03 +08:00
|
|
|
register("plain", newPlain, 0)
|
2020-07-22 23:02:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func newPlain(b *Base) Obfs {
|
|
|
|
return &plain{}
|
|
|
|
}
|
|
|
|
|
2021-02-15 14:32:03 +08:00
|
|
|
func (p *plain) StreamConn(c net.Conn) net.Conn { return c }
|