diff --git a/.travis.yml b/.travis.yml index aebf55da1c..4c4c4de8c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -157,7 +157,9 @@ jobs: file: build/package/* skip_cleanup: true api_key: "$GIT_RELEASES_API_KEY" - - script: + on: + tags: true + - script: - bin/s3 sync s3://docker-images build/docker - docker load -i build/docker/myst_alpine.tgz - docker load -i build/docker/myst_ubuntu.tgz diff --git a/nat/service_iptables.go b/nat/service_iptables.go index 04fe1f81d8..c803e56db0 100644 --- a/nat/service_iptables.go +++ b/nat/service_iptables.go @@ -36,15 +36,11 @@ func (service *serviceIPTables) Add(rule RuleForwarding) { func (service *serviceIPTables) Start() error { err := service.ipForward.Enable() if err != nil { - return err + log.Warn(natLogPrefix, "Failed to enable IP forwarding: ", err) } service.clearStaleRules() - err = service.enableRules() - if err != nil { - return err - } - return nil + return service.enableRules() } func (service *serviceIPTables) Stop() { diff --git a/nat/service_pfctl.go b/nat/service_pfctl.go index 552705f34b..0aabe0775b 100644 --- a/nat/service_pfctl.go +++ b/nat/service_pfctl.go @@ -40,15 +40,11 @@ func (service *servicePFCtl) Add(rule RuleForwarding) { func (service *servicePFCtl) Start() error { err := service.ipForward.Enable() if err != nil { - return err + log.Warn(natLogPrefix, "Failed to enable IP forwarding: ", err) } service.clearStaleRules() - err = service.enableRules() - if err != nil { - return err - } - return nil + return service.enableRules() } func (service *servicePFCtl) Stop() {