From 4a85472c81852664f249c4a0c55d2b2497061495 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 13 Apr 2017 14:46:35 -0700 Subject: [PATCH] tun2: interface check --- lib/tun2/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tun2/client.go b/lib/tun2/client.go index 870a72e..adb1c8b 100644 --- a/lib/tun2/client.go +++ b/lib/tun2/client.go @@ -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() }