Skip to content

Commit

Permalink
More v2 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
job committed Sep 11, 2024
1 parent 7fbfc04 commit 93db6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ func (c *Client) SetDisableVersionCheck(disableCheck bool) {
}

func (c *Client) checkVersion(newversion uint8) {
if (!c.versionset || newversion == c.version) && (newversion == PROTOCOL_VERSION_2 || newversion == PROTOCOL_VERSION_1 || newversion == PROTOCOL_VERSION_0) {
if (!c.versionset || newversion == c.version) && (newversion == PROTOCOL_VERSION_1 || newversion == PROTOCOL_VERSION_0) {
c.SetVersion(newversion)
} else {
if c.log != nil {
Expand Down

0 comments on commit 93db6e9

Please sign in to comment.