Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Dec 6, 2023
1 parent 46df5b5 commit 9fd9ee6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
port: 8000
- name: Test in OpenBSD
id: test
uses: vmactions/openbsd-vm@e334b12d061ed5e4df65a8565ed3f3ff939466a8
uses: vmactions/openbsd-vm@46df5b582f3e6c68d688dfacab451636e1e080bf
with:
envs: 'DEBUG MYTOKEN MYTOKEN2'
prepare: |
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v4
- name: Test in OpenBSD
id: test
uses: vmactions/openbsd-vm@e334b12d061ed5e4df65a8565ed3f3ff939466a8
uses: vmactions/openbsd-vm@46df5b582f3e6c68d688dfacab451636e1e080bf
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
Expand Down
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ addNAT() {
fi

if [ "$_prot" == "udp" ]; then
sudo socat UDP4-RECVFROM:$_hostport,fork UDP4-SENDTO:$_vmip:$_vmport &
sudo socat UDP4-RECVFROM:$_hostport,fork UDP4-SENDTO:$_vmip:$_vmport >/dev/null 2>&1 &
else
sudo socat TCP-LISTEN:$_hostport,fork TCP:$_vmip:$_vmport &
sudo socat TCP-LISTEN:$_hostport,fork TCP:$_vmip:$_vmport >/dev/null 2>&1 &
fi

}
Expand Down

0 comments on commit 9fd9ee6

Please sign in to comment.