Skip to content

Commit 310ef46

Browse files
Merge pull request webtorrent#249 from alxhotel/fix-travis-ipv6
Fix IPv6 in Travis
2 parents f0ada14 + 1cd922e commit 310ef46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ sudo: false
33
node_js:
44
- "node"
55
before_script:
6+
# Add an IPv6 config - see the corresponding Travis issue
7+
# https://github.com/travis-ci/travis-ci/issues/8361
8+
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
9+
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
10+
fi
611
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start

0 commit comments

Comments
 (0)