Skip to content

Commit

Permalink
Silence gosec warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Oct 6, 2024
1 parent f89a5a4 commit 3a4325a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ship/hs_hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (c *ShipConnection) handshakeHelloSend(phase model.ConnectionHelloPhaseType
}

if waitingDuration > 0 {
helloMsg.ConnectionHello.Waiting = util.Ptr(uint(waitingDuration.Milliseconds()))
helloMsg.ConnectionHello.Waiting = util.Ptr(uint(waitingDuration.Milliseconds())) //#nosec G115
}
if prolongation {
helloMsg.ConnectionHello.ProlongationRequest = &prolongation
Expand Down

0 comments on commit 3a4325a

Please sign in to comment.