aboutsummaryrefslogtreecommitdiff
path: root/process.go
diff options
context:
space:
mode:
Diffstat (limited to 'process.go')
-rw-r--r--process.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.go b/process.go
index fbbb6af..cddc766 100644
--- a/process.go
+++ b/process.go
@@ -46,7 +46,7 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
return
}
- if cmd.MaxProtoVer < protoVer || cmd.MinProtoVer > protoVer {
+ if cmd.MaxProtoVer != protoVer || cmd.MinProtoVer > protoVer {
cc.Log("<-", "unsupported protoVer range min", cmd.MinProtoVer, "max", cmd.MaxProtoVer, "expect", protoVer)
ack, _ := cc.SendCmd(&mt.ToCltKick{Reason: mt.UnsupportedVer})