SpoofDPI/net/listener.go

19 lines
233 B
Go
Raw Normal View History

package net
import (
"net"
)
type Listener struct {
2022-01-11 17:15:45 +00:00
listener net.Listener
}
func (l *Listener) Accept() (Conn, error) {
2022-01-11 17:15:45 +00:00
conn, err := l.listener.Accept()
if err != nil {
return Conn{}, err
}
2022-01-11 17:15:45 +00:00
return Conn{conn: conn}, nil
}