Sockopt: Add dialTimeout

This commit is contained in:
风扇滑翔翼 2025-03-06 21:41:38 +00:00 committed by GitHub
parent 16eee1b89c
commit 43b57825fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 51 additions and 33 deletions

View file

@ -716,6 +716,7 @@ type SocketConfig struct {
TcpMptcp bool `json:"tcpMptcp"`
CustomSockopt []*CustomSockoptConfig `json:"customSockopt"`
AddressPortStrategy string `json:"addressPortStrategy"`
DialTimeout int32 `json:"dialTimeout"`
}
// Build implements Buildable.
@ -824,6 +825,7 @@ func (c *SocketConfig) Build() (*internet.SocketConfig, error) {
TcpMptcp: c.TcpMptcp,
CustomSockopt: customSockopts,
AddressPortStrategy: addressPortStrategy,
DialTimeout: c.DialTimeout,
}, nil
}