add iptables rule for MASQUERADE for egress

This commit is contained in:
Dawn Chen
2015-06-24 12:56:36 -07:00
parent 6ddfa512de
commit 710fb4e413
4 changed files with 23 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ func CompileRegexps(regexpStrings []string) ([]*regexp.Regexp, error) {
// TODO(dchen1107): realiably detects the init system using on the system:
// systemd, upstart, initd, etc.
func UsingSystemdInitSystem() bool {
if _, err := os.Stat("/run/systemd/system"); err != nil {
if _, err := os.Stat("/run/systemd/system"); err == nil {
return true
}