mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2025-01-11 00:27:20 +00:00
19 lines
233 B
Go
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
|
||
|
}
|