Skip to content

Commit

Permalink
support dataverse endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
shueybubbles committed Feb 21, 2024
1 parent ebc290e commit b0e487d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ func (c *tlsHandshakeConn) Read(b []byte) (n int, err error) {
err = fmt.Errorf("cannot read handshake packet: %s", err.Error())
return
}
if packet != packPrelogin {
// Older endpoints send back header type 4 instead of 18
if packet != packPrelogin && packet != packReply {
err = fmt.Errorf("unexpected packet %d, expecting prelogin", packet)
return
}
Expand Down

0 comments on commit b0e487d

Please sign in to comment.