Skip to content

Commit

Permalink
v1.2 Update Client commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarmen committed Oct 10, 2024
1 parent e864095 commit 231be33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,31 @@ jobs:
runs-on: ubuntu-latest
name: client warp+doh mode by default
steps:
- uses: fscarmen/warp-on-actions@v1.1
- uses: fscarmen/warp-on-actions@v1.2

client-ipv4:
runs-on: ubuntu-latest
name: client warp+doh mode with ipv4
steps:
- name: Set up WARP with client with ipv4
uses: fscarmen/warp-on-actions@v1.1
uses: fscarmen/warp-on-actions@v1.2
with:
mode: client
stack: ipv4

client-ipv6:
runs-on: ubuntu-latest
name: client warp+doh mode with ipv6
steps:
- name: Set up WARP with client
uses: fscarmen/warp-on-actions@v1.1
uses: fscarmen/warp-on-actions@v1.2
with:
mode: client
stack: ipv6

client-dual:
runs-on: ubuntu-latest
name: client warp+doh mode with dual
steps:
- name: Set up WARP with client
uses: fscarmen/warp-on-actions@v1.1
uses: fscarmen/warp-on-actions@v1.2
with:
mode: client
stack: dual
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
client warp+doh mode
```
- name: Set up WARP
uses: fscarmen/warp-on-actions@v1.1
uses: fscarmen/warp-on-actions@v1.2
with:
stack: dual # Optional. Support [ ipv4, ipv6, dual ]. Default is dual.
```
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ runs:
sudo warp-cli --accept-tos registration new
sudo warp-cli --accept-tos mode warp+doh
if [ "${{ inputs.stack }}" == 'ipv4' ]; then
sudo warp-cli --accept-tos add-excluded-route ::/0
sudo warp-cli --accept-tos tunnel ip add-range ::0/0
elif [ "${{ inputs.stack }}" == 'ipv6' ]; then
sudo warp-cli --accept-tos add-excluded-route 0.0.0.0/0
sudo warp-cli --accept-tos tunnel ip add-range 0.0.0.0/0
fi
sudo warp-cli --accept-tos connect
Expand Down

0 comments on commit 231be33

Please sign in to comment.