github.com/xxf098/lite-proxy@v0.15.1-0.20230422081941-12c69f323218/transport/ssr/obfs/plain.go (about)

     1  package obfs
     2  
     3  import "net"
     4  
     5  type plain struct{}
     6  
     7  func init() {
     8  	register("plain", newPlain, 0)
     9  }
    10  
    11  func newPlain(b *Base) Obfs {
    12  	return &plain{}
    13  }
    14  
    15  func (p *plain) StreamConn(c net.Conn) net.Conn { return c }