File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v2
11
- - run : docker build .
11
+ - name : Build container
12
+ run : |
13
+ git_hash=$(git rev-parse --short "$GITHUB_SHA")
14
+ docker build . -t quay.io/wire/restund:$git_hash
15
+ docker run --network=host --volume $(pwd)/etc/restund.conf:/etc/restund.conf:ro --volume $(pwd)/etc/restund.auth:/etc/restund.auth quay.io/wire/restund:$git_hash &
16
+ - name : Test if relaying localhost and friends is blocked
17
+ run : |
18
+ sudo apt-get update && sudo apt-get install -y coturn
19
+ ./test.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -x
3
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e 127.0.0.1 || exit 1
4
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e 127.0.0.2 || exit 1
5
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e 255.255.255.255 || exit 1
6
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e 169.254.0.1 || exit 1
7
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e 0.0.0.0 || exit 1
8
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e " ::1" || exit 1
9
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e " ::" || exit 1
10
+ ! turnutils_uclient 127.0.0.1 -X -u demo -w secret -e " fe80::" || exit 1
11
+
12
+
You can’t perform that action at this time.
0 commit comments