Add netns support

This commit is contained in:
世界 2025-03-18 14:21:08 +08:00
parent 63f10d37ff
commit 74bfea713d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
16 changed files with 218 additions and 103 deletions

View file

@ -77,6 +77,7 @@ type DialerOptions struct {
TCPMultiPath bool `json:"tcp_multi_path,omitempty"`
UDPFragment *bool `json:"udp_fragment,omitempty"`
UDPFragmentDefault bool `json:"-"`
NetNs string `json:"netns,omitempty"`
DomainResolver *DomainResolveOptions `json:"domain_resolver,omitempty"`
NetworkStrategy *NetworkStrategy `json:"network_strategy,omitempty"`
NetworkType badoption.Listable[InterfaceType] `json:"network_type,omitempty"`