From 2508abd5ad312a740780aa3217ada8d80c61045a Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Sun, 9 Aug 2015 18:04:05 -0700 Subject: [PATCH] run: Fail gracefully when IPv6 fails * Fail gracefully but complain in the log when --privileged isn't used for docker run. * IPv6 is in development for the time being. * Closes #56 --- bin/ovpn_run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ovpn_run b/bin/ovpn_run index b91da3a..ccb0467 100755 --- a/bin/ovpn_run +++ b/bin/ovpn_run @@ -52,8 +52,8 @@ if [ $? = 0 ]; then # If this fails, ensure the docker container is run with --privileged # Could be side stepped with `ip netns` madness to drop privileged flag - sysctl net.ipv6.conf.default.forwarding=1 - sysctl net.ipv6.conf.all.forwarding=1 + sysctl net.ipv6.conf.default.forwarding=1 || echo "Failed to enable IPv6 Forwarding default" + sysctl net.ipv6.conf.all.forwarding=1 || echo "Failed to enable IPv6 Forwarding" fi if [ "$#" -gt 0 ]; then