Skip to content

Commit

Permalink
feat: check the network is TCP before set MPTCP
Browse files Browse the repository at this point in the history
This actually won't have any impact
  • Loading branch information
AkinoKaede authored and xiaokangwang committed Aug 19, 2024
1 parent 35b4ad4 commit 11ef2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/internet/system_dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (d *DefaultSystemDialer) Dial(ctx context.Context, src net.Address, dest ne
KeepAlive: goStdKeepAlive,
}

if sockopt != nil {
if dest.Network == net.Network_TCP && sockopt != nil {
switch sockopt.Mptcp {
case MPTCPState_Enable:
dialer.SetMultipathTCP(true)
Expand Down

0 comments on commit 11ef2b5

Please sign in to comment.