Skip to content

Commit c9a4d82

Browse files
authored
Merge pull request #772 from ehang-io/dev
Dev
2 parents 63ba977 + 2b68fbd commit c9a4d82

22 files changed

+225
-149
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go 1.x
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: ^1.14
18+
go-version: 1.15
1919
id: go
2020
- name: Check out code into the Go module directory
2121
uses: actions/checkout@v2
@@ -81,7 +81,7 @@ jobs:
8181
- name: Build
8282
run: |
8383
chmod +x build.android.sh
84-
docker run --rm -i -w /app -v $(pwd):/app -e ANDROID_HOME=/usr/local/android_sdk -e GOPROXY=direct lucor/fyne-cross:android-latest /app/build.android.sh
84+
docker run --rm -i -w /app -v $(pwd):/app -e ANDROID_HOME=/usr/local/android_sdk -e GOPROXY=direct fyneio/fyne-cross:android-latest /app/build.android.sh
8585
- name: Upload
8686
uses: softprops/action-gh-release@v1
8787
if: startsWith(github.ref, 'refs/tags/')

Dockerfile.npc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.14 as builder
1+
FROM golang:1.15 as builder
22
ARG GOPROXY=direct
33
WORKDIR /go/src/ehang.io/nps
44
COPY . .

Dockerfile.nps

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.14 as builder
1+
FROM golang:1.15 as builder
22
ARG GOPROXY=direct
33
WORKDIR /go/src/ehang.io/nps
44
COPY . .

build.android.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cd /go
44
apt-get install libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev -y
5-
go get -u fyne.io/fyne/cmd/fyne fyne.io/fyne
5+
go get -u fyne.io/fyne/v2/cmd/fyne fyne.io/fyne/v2
66
#mkdir -p /go/src/fyne.io
77
#cd src/fyne.io
88
#git clone https://github.com/fyne-io/fyne.git

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#/bash/sh
2-
export VERSION=0.26.9
2+
export VERSION=0.26.10
33
export GOPROXY=direct
44

55
sudo apt-get update

cmd/npc/npc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func run() {
233233
go func() {
234234
for {
235235
client.NewRPClient(*serverAddr, *verifyKey, *connType, *proxyUrl, nil, *disconnectTime).Start()
236-
logs.Info("It will be reconnected in five seconds")
236+
logs.Info("Client closed! It will be reconnected in five seconds")
237237
time.Sleep(time.Second * 5)
238238
}
239239
}()

cmd/npc/sdk.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@ var cl *client.TRPClient
1212

1313
//export StartClientByVerifyKey
1414
func StartClientByVerifyKey(serverAddr, verifyKey, connType, proxyUrl *C.char) int {
15-
logs.SetLogger("store")
15+
_ = logs.SetLogger("store")
1616
if cl != nil {
1717
cl.Close()
1818
}
1919
cl = client.NewRPClient(C.GoString(serverAddr), C.GoString(verifyKey), C.GoString(connType), C.GoString(proxyUrl), nil, 60)
20-
go func() {
21-
cl.Start()
22-
return
23-
}()
20+
cl.Start()
2421
return 1
2522
}
2623

docs/_coverpage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](logo.svg)
22

3-
# NPS <small>0.26.9</small>
3+
# NPS <small>0.26.10</small>
44

55
> 一款轻量级、高性能、功能强大的内网穿透代理服务器
66

docs/npc_sdk.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
```
44
命令行模式启动客户端
5+
从v0.26.10开始,此函数会阻塞,直到客户端退出返回,请自行管理是否重连
56
p0->连接地址
67
p1->vkey
78
p2->连接类型(tcp or udp)

docs/server_config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 服务端配置文件
2-
- /conf/nps.conf
2+
- /etc/nps/conf/nps.conf
33

44
名称 | 含义
55
---|---

go.mod

+16-17
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
module ehang.io/nps
22

3-
go 1.14
3+
go 1.15
44

55
require (
6-
ehang.io/nps-mux v0.0.0-20200617154922-5dc86cc6082a
7-
fyne.io/fyne v1.3.3
8-
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
6+
ehang.io/nps-mux v0.0.0-20210407130203-4afa0c10c992
7+
fyne.io/fyne/v2 v2.0.2
98
github.com/astaxie/beego v1.12.0
109
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect
1110
github.com/c4milo/unpackit v0.0.0-20170704181138-4ed373e9ef1c
1211
github.com/ccding/go-stun v0.0.0-20180726100737-be486d185f3d
1312
github.com/dsnet/compress v0.0.1 // indirect
14-
github.com/go-ole/go-ole v1.2.4 // indirect
15-
github.com/golang/snappy v0.0.2
13+
github.com/golang/snappy v0.0.3
1614
github.com/hooklift/assert v0.0.0-20170704181755-9d1defd6d214 // indirect
17-
github.com/kardianos/service v1.0.0
18-
github.com/klauspost/cpuid v1.3.0 // indirect
15+
github.com/kardianos/service v1.2.0
16+
github.com/klauspost/cpuid v1.3.1 // indirect
17+
github.com/klauspost/cpuid/v2 v2.0.6 // indirect
1918
github.com/klauspost/pgzip v1.2.1 // indirect
20-
github.com/klauspost/reedsolomon v1.9.9 // indirect
21-
github.com/mmcloughlin/avo v0.0.0-20200523190732-4439b6b2c061 // indirect
19+
github.com/klauspost/reedsolomon v1.9.12 // indirect
2220
github.com/panjf2000/ants/v2 v2.4.2
2321
github.com/pkg/errors v0.9.1
2422
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
25-
github.com/shirou/gopsutil v2.19.11+incompatible
26-
github.com/tjfoc/gmsm v1.3.2 // indirect
23+
github.com/shirou/gopsutil/v3 v3.21.3
24+
github.com/templexxx/cpufeat v0.0.0-20180724012125-cef66df7f161 // indirect
25+
github.com/templexxx/xor v0.0.0-20191217153810-f85b25db303b // indirect
26+
github.com/tjfoc/gmsm v1.4.0 // indirect
2727
github.com/xtaci/kcp-go v5.4.20+incompatible
28-
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 // indirect
29-
golang.org/x/mod v0.3.0 // indirect
30-
golang.org/x/net v0.0.0-20200602114024-627f9648deb9
31-
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 // indirect
32-
golang.org/x/tools v0.0.0-20200617042924-7f3f4b10a808 // indirect
28+
github.com/xtaci/lossyconn v0.0.0-20190602105132-8df528c0c9ae // indirect
29+
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
30+
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
31+
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57 // indirect
3332
)
3433

3534
replace github.com/astaxie/beego => github.com/exfly/beego v1.12.0-export-init

0 commit comments

Comments
 (0)