0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-18 14:19:48 +03:00

Sockopt: Add dialTimeout

This commit is contained in:
风扇滑翔翼
2025-03-06 21:41:38 +00:00
committed by GitHub
parent 16eee1b89c
commit 43b57825fa
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
}