Skip to content

Commit

Permalink
Use session params (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyech authored Oct 13, 2023
1 parent 3dc0ec0 commit b511d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transports/connecting/dtls/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (*ClientTransport) DisableRegDelay() bool {

// GetDstPort returns the destination port that the client should open the phantom connection to
func (t *ClientTransport) GetDstPort(seed []byte) (uint16, error) {
if t.Parameters == nil || !t.Parameters.GetRandomizeDstPort() {
if t.sessionParams == nil || !t.sessionParams.GetRandomizeDstPort() {
return defaultPort, nil
}

Expand Down

0 comments on commit b511d51

Please sign in to comment.