fix: Don't enable net.ipv6.conf.all.forwarding (#496)

This commit is contained in:
/gray 2024-04-12 19:35:02 +08:00 committed by GitHub
parent c1a7a64471
commit 89a0596727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -288,8 +288,6 @@ func (ns *DaeNetns) setupSysctl() (err error) {
if err = sysctl.Set(fmt.Sprintf("net.ipv6.conf.%s.forwarding", HostVethName), "1", true); err != nil {
return fmt.Errorf("failed to set forwarding for dae0: %v", err)
}
// sysctl net.ipv6.conf.all.forwarding=1
SetForwarding("all", "1")
// *_early_demux is not mandatory, but it's recommended to enable it for better performance
if err = netns.Set(ns.daeNs); err != nil {