mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-16 09:08:41 +00:00
Sockopt: Add dialTimeout
This commit is contained in:
parent
16eee1b89c
commit
43b57825fa
4 changed files with 51 additions and 33 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue