Skip to content

Commit c9a4d82

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

File tree

22 files changed

+225
-149
lines changed

22 files changed

+225
-149
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 5 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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
---|---

0 commit comments

Comments
 (0)