Skip to content

Commit

Permalink
up:1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
everstu committed Aug 28, 2023
1 parent a6ef672 commit cbaf064
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 17 deletions.
6 changes: 5 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
KoolCenter RustDesk Server Changelog
===========================================
1.4
- fix NAT重启后无法正常防火墙端口未开放的问题
- update rustdesk_server二进制v1.1.8-2版本

1.4
- add 新增开启插件检测端口占用功能
- update rustdesk_server二进制v1.1.8版本(armv7版本,采用upx --lzma --best压缩)
- update rustdesk_server二进制v1.1.8版本

1.3
- add 新增强制使用中继服务器选项
Expand Down
7 changes: 6 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
# _*_ coding:utf-8 _*_

import os
import sys
import json
import codecs
import hashlib
from string import Template
from string import Template

if sys.getdefaultencoding() != 'gbk':
reload(sys)
sys.setdefaultencoding('gbk')

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

Expand Down
4 changes: 2 additions & 2 deletions config.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"description": "RustDesk是一款优秀的免费开源的远程控制软件,此插件提供RustDesk自建服务器功能。",
"home_url": "Module_rustdesk.asp",
"link": "https://github.com/everstu/Koolcenter_rustdesk",
"md5": "45cb54e8b694468379f96e8f2756b817",
"md5": "4b4f6993cb7dadf375d1950ef5e79ce5",
"module": "rustdesk",
"tags": "穿透",
"title": "RustDesk Server",
"version": "1.4"
"version": "1.4.1"
}
Binary file modified rustdesk/bin/hbbr
Binary file not shown.
Binary file modified rustdesk/bin/hbbs
Binary file not shown.
Binary file modified rustdesk/bin/rustdesk-utils
Binary file not shown.
30 changes: 18 additions & 12 deletions rustdesk/scripts/rustdesk_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,7 @@ stop_plugin() {
echo_date "❌️插件已停止运行!"
}

configServerEnv() {
if [ "$rustdesk_is_encrypted" == "1" ]; then
connect_key=$rustdesk_key_pub
hbbsCMD="${hbbsCMD} -k _"
hbbrCMD="${hbbrCMD} -k _"
fi

if [ "$rustdesk_always_use_relay" == "1" ]; then
ALWAYS_USE_RELAY="Y"
fi

configServerPort(){
if [ $(number_test ${rustdesk_hbbs_port}) != "0" ]; then
dbus set rustdesk_hbbs_port="21116"
dbus set rustdesk_hbbr_port="21117"
Expand All @@ -137,6 +127,19 @@ configServerEnv() {
hbbr_used_port1=$(($hbbr_used_port + 2))
}

configServerEnv() {
if [ "$rustdesk_is_encrypted" == "1" ]; then
connect_key=$rustdesk_key_pub
hbbsCMD="${hbbsCMD} -k _"
hbbrCMD="${hbbrCMD} -k _"
fi

if [ "$rustdesk_always_use_relay" == "1" ]; then
ALWAYS_USE_RELAY="Y"
fi
configServerPort
}

start_process() {
start_hbbs
start_hbbr
Expand Down Expand Up @@ -244,13 +247,16 @@ kill_process() {
}

open_port() {
# 1.math port
configServerPort
# 2.load xt_comment.ko
local CM=$(lsmod | grep xt_comment)
local OS=$(uname -r)
if [ -z "${CM}" -a -f "/lib/modules/${OS}/kernel/net/netfilter/xt_comment.ko" ]; then
echo_date "ℹ️加载xt_comment.ko内核模块!"
insmod /lib/modules/${OS}/kernel/net/netfilter/xt_comment.ko
fi

# 3.open port
local HBBSMATCH=$(iptables -t filter -S INPUT | grep "rustdesk_rule")
if [ -z "${HBBSMATCH}" ]; then
echo_date "🧱添加防火墙入站规则..."
Expand Down
2 changes: 1 addition & 1 deletion rustdesk/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4
1.4.1

0 comments on commit cbaf064

Please sign in to comment.