tun2: interface check

This commit is contained in:
Cadey Ratio 2017-04-13 14:46:35 -07:00
parent 5c410b0931
commit 4a85472c81
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ type smuxListener struct {
session *smux.Session session *smux.Session
} }
var (
_ net.Listener = &smuxListener{} // interface check
)
func (sl *smuxListener) Accept() (net.Conn, error) { func (sl *smuxListener) Accept() (net.Conn, error) {
return sl.session.AcceptStream() return sl.session.AcceptStream()
} }