remove TODOs: the sysctls have reasonable defaults

This commit is contained in:
Michael Stapelberg 2018-06-23 20:34:42 +02:00
parent bf2c12a69d
commit 3886367a32

View File

@ -558,8 +558,6 @@ func applyFirewall(dir string) error {
} }
func applySysctl() error { func applySysctl() error {
// TODO: increase NAT table size
// TODO: increase keepalive to 7200(?)
if err := ioutil.WriteFile("/proc/sys/net/ipv4/ip_forward", []byte("1"), 0644); err != nil { if err := ioutil.WriteFile("/proc/sys/net/ipv4/ip_forward", []byte("1"), 0644); err != nil {
return fmt.Errorf("sysctl(net.ipv4.ip_forward=1): %v", err) return fmt.Errorf("sysctl(net.ipv4.ip_forward=1): %v", err)
} }