Skip to content

Commit cbaf064

Browse files
committed
up:1.4.1
1 parent a6ef672 commit cbaf064

File tree

8 files changed

+32
-17
lines changed

8 files changed

+32
-17
lines changed

Changelog.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
KoolCenter RustDesk Server Changelog
22
===========================================
3+
1.4
4+
- fix NAT重启后无法正常防火墙端口未开放的问题
5+
- update rustdesk_server二进制v1.1.8-2版本
6+
37
1.4
48
- add 新增开启插件检测端口占用功能
5-
- update rustdesk_server二进制v1.1.8版本(armv7版本,采用upx --lzma --best压缩)
9+
- update rustdesk_server二进制v1.1.8版本
610

711
1.3
812
- add 新增强制使用中继服务器选项

build.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
# _*_ coding:utf-8 _*_
33

44
import os
5+
import sys
56
import json
67
import codecs
78
import hashlib
8-
from string import Template
9+
from string import Template
10+
11+
if sys.getdefaultencoding() != 'gbk':
12+
reload(sys)
13+
sys.setdefaultencoding('gbk')
914

1015
parent_path = os.path.dirname(os.path.realpath(__file__))
1116

config.json.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"description": "RustDesk是一款优秀的免费开源的远程控制软件,此插件提供RustDesk自建服务器功能。",
44
"home_url": "Module_rustdesk.asp",
55
"link": "https://github.com/everstu/Koolcenter_rustdesk",
6-
"md5": "45cb54e8b694468379f96e8f2756b817",
6+
"md5": "4b4f6993cb7dadf375d1950ef5e79ce5",
77
"module": "rustdesk",
88
"tags": "穿透",
99
"title": "RustDesk Server",
10-
"version": "1.4"
10+
"version": "1.4.1"
1111
}

rustdesk/bin/hbbr

-451 KB
Binary file not shown.

rustdesk/bin/hbbs

-663 KB
Binary file not shown.

rustdesk/bin/rustdesk-utils

-248 KB
Binary file not shown.

rustdesk/scripts/rustdesk_config.sh

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,7 @@ stop_plugin() {
114114
echo_date "❌️插件已停止运行!"
115115
}
116116

117-
configServerEnv() {
118-
if [ "$rustdesk_is_encrypted" == "1" ]; then
119-
connect_key=$rustdesk_key_pub
120-
hbbsCMD="${hbbsCMD} -k _"
121-
hbbrCMD="${hbbrCMD} -k _"
122-
fi
123-
124-
if [ "$rustdesk_always_use_relay" == "1" ]; then
125-
ALWAYS_USE_RELAY="Y"
126-
fi
127-
117+
configServerPort(){
128118
if [ $(number_test ${rustdesk_hbbs_port}) != "0" ]; then
129119
dbus set rustdesk_hbbs_port="21116"
130120
dbus set rustdesk_hbbr_port="21117"
@@ -137,6 +127,19 @@ configServerEnv() {
137127
hbbr_used_port1=$(($hbbr_used_port + 2))
138128
}
139129

130+
configServerEnv() {
131+
if [ "$rustdesk_is_encrypted" == "1" ]; then
132+
connect_key=$rustdesk_key_pub
133+
hbbsCMD="${hbbsCMD} -k _"
134+
hbbrCMD="${hbbrCMD} -k _"
135+
fi
136+
137+
if [ "$rustdesk_always_use_relay" == "1" ]; then
138+
ALWAYS_USE_RELAY="Y"
139+
fi
140+
configServerPort
141+
}
142+
140143
start_process() {
141144
start_hbbs
142145
start_hbbr
@@ -244,13 +247,16 @@ kill_process() {
244247
}
245248

246249
open_port() {
250+
# 1.math port
251+
configServerPort
252+
# 2.load xt_comment.ko
247253
local CM=$(lsmod | grep xt_comment)
248254
local OS=$(uname -r)
249255
if [ -z "${CM}" -a -f "/lib/modules/${OS}/kernel/net/netfilter/xt_comment.ko" ]; then
250256
echo_date "ℹ️加载xt_comment.ko内核模块!"
251257
insmod /lib/modules/${OS}/kernel/net/netfilter/xt_comment.ko
252258
fi
253-
259+
# 3.open port
254260
local HBBSMATCH=$(iptables -t filter -S INPUT | grep "rustdesk_rule")
255261
if [ -z "${HBBSMATCH}" ]; then
256262
echo_date "🧱添加防火墙入站规则..."

rustdesk/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4
1+
1.4.1

0 commit comments

Comments
 (0)