Add tcpMptcp to sockopt (#2520)

This commit is contained in:
yylt 2023-09-08 01:32:27 +08:00 committed by GitHub
parent 853a866622
commit c00e56c0da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 26 deletions

View file

@ -622,6 +622,7 @@ type SocketConfig struct {
TCPUserTimeout int32 `json:"tcpUserTimeout"`
V6only bool `json:"v6only"`
Interface string `json:"interface"`
TcpMptcp bool `json:"tcpMptcp"`
}
// Build implements Buildable.
@ -677,6 +678,7 @@ func (c *SocketConfig) Build() (*internet.SocketConfig, error) {
TcpUserTimeout: c.TCPUserTimeout,
V6Only: c.V6only,
Interface: c.Interface,
TcpMptcp: c.TcpMptcp,
}, nil
}