Fix windows firewall for system stack

This commit is contained in:
世界 2023-05-03 23:03:51 +08:00
parent 209ec123ca
commit 6999634511
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
4 changed files with 88 additions and 25 deletions

View file

@ -15,19 +15,20 @@ type Stack interface {
}
type StackOptions struct {
Context context.Context
Tun Tun
Name string
MTU uint32
Inet4Address []netip.Prefix
Inet6Address []netip.Prefix
EndpointIndependentNat bool
UDPTimeout int64
Router Router
Handler Handler
Logger logger.Logger
ForwarderBindInterface bool
InterfaceFinder control.InterfaceFinder
Context context.Context
Tun Tun
Name string
MTU uint32
Inet4Address []netip.Prefix
Inet6Address []netip.Prefix
EndpointIndependentNat bool
UDPTimeout int64
Router Router
Handler Handler
Logger logger.Logger
ForwarderBindInterface bool
InterfaceFinder control.InterfaceFinder
ExperimentalFixWindowsFirewall bool
}
func NewStack(