We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1bb1bd commit 164b584Copy full SHA for 164b584
protocol/handshake/client.go
@@ -68,10 +68,12 @@ func (c *Client) handleAcceptVersion(msgGeneric protocol.Message) error {
68
}
69
msg := msgGeneric.(*MsgAcceptVersion)
70
fullDuplex := false
71
- versionData := msg.VersionData.([]interface{})
72
- //nolint:gosimple
73
- if versionData[1].(bool) == DIFFUSION_MODE_INITIATOR_AND_RESPONDER {
74
- fullDuplex = true
+ if c.Mode() == protocol.ProtocolModeNodeToNode {
+ versionData := msg.VersionData.([]interface{})
+ //nolint:gosimple
+ if versionData[1].(bool) == DIFFUSION_MODE_INITIATOR_AND_RESPONDER {
75
+ fullDuplex = true
76
+ }
77
78
return c.config.FinishedFunc(msg.Version, fullDuplex)
79
0 commit comments