Skip to content

Commit 4146d49

Browse files
committed
fix nat, add testing workflow
1 parent f4770da commit 4146d49

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

.github/workflows/dev-build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
go-version: ${{ matrix.go-version }}
2121
- name: Checkout code
2222
uses: actions/checkout@v2
23+
- name: Run tests
24+
run: cd test && go test && cd ..
2325
- name: Build
2426
run: mkdir dist && go build -tags "full" -o dist
2527
- name: Upload Binary

common/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
const (
14-
Version = "v0.4.5"
14+
Version = "v0.4.6"
1515
)
1616

1717
type Runnable interface {

docs/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ enableMissingTranslationPlaceholders = false
1616
# Source Code repository section
1717
description = "An unidentifiable mechanism that helps you bypass GFW. "
1818
github_repository = "https://github.com/p4gefau1t/trojan-go"
19-
version = "0.4.5"
19+
version = "0.4.6"
2020

2121
# Documentation repository section
2222
# documentation repository (set edit link to documentation repository)

docs/content/developer/simplesocks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SimpleSocks协议是无认证机制的简单代理协议,本质上就是去除
88

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

11-
```
11+
```text
1212
+-----+------+----------+----------+-----------+
1313
| CMD | ATYP | DST.ADDR | DST.PORT | Payload |
1414
+-----+------+----------+----------+-----------+

proxy/client/nat.go

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func (n *NAT) listenTCP(errChan chan error) {
8888
})
8989
if err != nil {
9090
errChan <- err
91+
return
9192
}
9293
n.listener = listener
9394
defer listener.Close()

0 commit comments

Comments
 (0)