SpoofDPI/net/listener.go
2022-01-12 02:15:45 +09:00

19 lines
233 B
Go

package net
import (
"net"
)
type Listener struct {
listener net.Listener
}
func (l *Listener) Accept() (Conn, error) {
conn, err := l.listener.Accept()
if err != nil {
return Conn{}, err
}
return Conn{conn: conn}, nil
}