ci: Only setup ipv6 on macOS for Travis

This commit is contained in:
James McCoy 2020-11-16 22:10:08 -05:00
parent 0d7777e9bc
commit be9bd43502
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${CI_DIR}/common/build.sh"
# Enable ipv6 on Travis. ref: a39c8b7ce30d
if ! test "${TRAVIS_OS_NAME}" = osx ; then
if test -n "${TRAVIS_OS_NAME}" && ! test "${TRAVIS_OS_NAME}" = osx ; then
echo "before_script.sh: enable ipv6"
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0
fi