tun2: interface check
This commit is contained in:
parent
5c410b0931
commit
4a85472c81
|
@ -122,6 +122,10 @@ type smuxListener struct {
|
|||
session *smux.Session
|
||||
}
|
||||
|
||||
var (
|
||||
_ net.Listener = &smuxListener{} // interface check
|
||||
)
|
||||
|
||||
func (sl *smuxListener) Accept() (net.Conn, error) {
|
||||
return sl.session.AcceptStream()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue