negentropy: return our version if we are a server and got the wrong version (blergh).
This commit is contained in:
@@ -96,9 +96,14 @@ func (n *Negentropy) reconcileAux(reader *StringHexReader) (string, error) {
|
|||||||
return "", fmt.Errorf("failed to read pv: %w", err)
|
return "", fmt.Errorf("failed to read pv: %w", err)
|
||||||
}
|
}
|
||||||
if pv != protocolVersion {
|
if pv != protocolVersion {
|
||||||
|
if n.isClient {
|
||||||
return "", fmt.Errorf("unsupported negentropy protocol version %v", pv)
|
return "", fmt.Errorf("unsupported negentropy protocol version %v", pv)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if we're a server we just return our protocol version
|
||||||
|
return fullOutput.Hex(), nil
|
||||||
|
}
|
||||||
|
|
||||||
var prevBound Bound
|
var prevBound Bound
|
||||||
prevIndex := 0
|
prevIndex := 0
|
||||||
skipping := false // this means we are currently coalescing ranges into skip
|
skipping := false // this means we are currently coalescing ranges into skip
|
||||||
|
|||||||
Reference in New Issue
Block a user