diff --git a/transport/hub/kcp.go b/transport/hub/kcp.go index d50c00c48..818dc7426 100644 --- a/transport/hub/kcp.go +++ b/transport/hub/kcp.go @@ -66,9 +66,11 @@ func (kvl *KCPVlistener) Accept() (net.Conn, error) { } return kcv, nil } + func (kvl *KCPVlistener) Close() error { return kvl.lst.Close() } + func (kvl *KCPVlistener) Addr() net.Addr { return kvl.lst.Addr() }