config.json存储优化,新增设置网卡跃点功能,以及其他bug修复

- 修复服务器地址过长导致无法删除地址的问题
- 新增设置网卡跃点功能
- 优化config.json serverUrl的输入格式,可数组或字符串逗号分隔
This commit is contained in:
黑先森
2024-11-14 14:57:42 +08:00
parent 8e6f8d602e
commit ab67ba94a3
11 changed files with 204 additions and 66 deletions
+2 -1
View File
@@ -2,4 +2,5 @@
# will have compiled files and executables
/target/
/gen/schemas
/easytier/logs
/easytier/logs
/easytier/logs/*.*
+1 -1
View File
@@ -1176,7 +1176,7 @@ checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125"
[[package]]
name = "easytier-game"
version = "1.1.8"
version = "1.1.9"
dependencies = [
"log",
"planif",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "easytier-game"
version = "1.1.8"
version = "1.1.9"
homepage = "https://github.com/EasyTier/EasyTier"
repository = "https://github.com/EasyTier/EasytierGame"
description = "A simple network initiator based on Easytier"
+6 -2
View File
@@ -4,7 +4,9 @@
"tcp",
"udp"
], // 协议类型
"serverUrl": "public.easytier.top:11010", // easytier服务地址
// easytier服务地址 - 可填写多个 方式1,逗号分隔,"xxxx.cn,yyyy.com" 方式2,数组 ["xxxx.cn","yyyy.com"] (默认选中第一个)
"serverUrl": "public.easytier.top:11010",
"networkName": "", // 网络名
"networkPassword": "", // 网络密码
"hostname": "configTest", // 主机名
@@ -18,5 +20,7 @@
"disbleP2p": false, // 禁用p2p, 强制中转
"dhcp": false, // 动态分配IP
"devName": false, // 是否启用自定义网卡名
"devNameValue": "" // 网卡名(启用devName之后才生效)
"devNameValue": "", // 网卡名(启用devName之后才生效)
"enableNetCardMetric": false, // 自定义easytier每次生成的网卡跃点
"netCardMetricValue": 1 // 网卡跃点数量(1-9999)
}
+2 -2
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "easytier-game",
"version": "1.1.8",
"version": "1.1.9",
"identifier": "com.tauri.easytier-game",
"build": {
@@ -13,7 +13,7 @@
"app": {
"windows": [
{
"title": "easytier-game 1.1.8",
"title": "easytier-game 1.1.9",
"minWidth": 340,
"width": 340,
"height": 305,