diff --git a/transport/internet/kcp/connection.go b/transport/internet/kcp/connection.go index 1d35fee79..1f194a29e 100644 --- a/transport/internet/kcp/connection.go +++ b/transport/internet/kcp/connection.go @@ -19,9 +19,9 @@ var ( type State int32 -func (v State) Is(states ...State) bool { +func (s State) Is(states ...State) bool { for _, state := range states { - if v == state { + if s == state { return true } }