Skip to content

Commit

Permalink
fix nat, add testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
p4gefau1t committed May 7, 2020
1 parent f4770da commit 4146d49
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: cd test && go test && cd ..
- name: Build
run: mkdir dist && go build -tags "full" -o dist
- name: Upload Binary
Expand Down
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
Version = "v0.4.5"
Version = "v0.4.6"
)

type Runnable interface {
Expand Down
2 changes: 1 addition & 1 deletion docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enableMissingTranslationPlaceholders = false
# Source Code repository section
description = "An unidentifiable mechanism that helps you bypass GFW. "
github_repository = "https://github.com/p4gefau1t/trojan-go"
version = "0.4.5"
version = "0.4.6"

# Documentation repository section
# documentation repository (set edit link to documentation repository)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/developer/simplesocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SimpleSocks协议是无认证机制的简单代理协议,本质上就是去除

SimpleSocks甚至比Socks5更简单,下面是头部结构。

```
```text
+-----+------+----------+----------+-----------+
| CMD | ATYP | DST.ADDR | DST.PORT | Payload |
+-----+------+----------+----------+-----------+
Expand Down
1 change: 1 addition & 0 deletions proxy/client/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (n *NAT) listenTCP(errChan chan error) {
})
if err != nil {
errChan <- err
return
}
n.listener = listener
defer listener.Close()
Expand Down

0 comments on commit 4146d49

Please sign in to comment.