diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..4d990cf --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,25 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... diff --git a/README.md b/README.md index 87f34ce..07455d9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ its a simple tcp forwarding tool ## Download and usage : ``` -wget github.com/benyamin218118/tcpforwarder/tcpforwarder +wget https://github.com/benyamin218118/tcpforwarder/raw/main/tcpforwarder chmod +x ./tcpforwarder ./tcpforwarder -lPort LISTEN_PORT -rHost REMOTE_SERVER_HOST -rPort REMOTE_SERVER_PORT @@ -17,9 +17,9 @@ chmod +x ./tcpforwarder - **our usa vps ip address is 44.55.66.77 and that service port is 9090 as mentioned before** - **so we need to replace the variables in `./tcpforwarder -lPort LISTEN_PORT -rHost REMOTE_SERVER_HOST -rPort REMOTE_SERVER_PORT` and it becomes** : - +(don't forget, we need to run this on our ir vps) > ./tcpforwarder -lPort 8080 -rHost 44.55.66.77 -rPort 9090 no we can use the ir server ip address and 8080 port instead of 44.55.66.77 and 9090 for connecting to that service running on the usa vps. -` client > x.x.x.x:8080 -> 44.55.66.77:9090` \ No newline at end of file +` client > x.x.x.x:8080 -> 44.55.66.77:9090`