diff --git a/Cargo.lock b/Cargo.lock
index 6692847..10045db 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -307,7 +307,7 @@ dependencies = [
[[package]]
name = "common"
-version = "1.2.11"
+version = "1.2.12"
dependencies = [
"anyhow",
"chrono",
@@ -319,6 +319,7 @@ dependencies = [
"rand",
"serde",
"serde_yaml",
+ "sys-locale",
"uuid",
"vnt",
]
@@ -880,7 +881,7 @@ checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
[[package]]
name = "libsm"
version = "0.5.1"
-source = "git+https://github.com/lbl8603/libsm#f9e1b8cf20d0829efb4934a940d0ba4f3ee0ac14"
+source = "git+https://github.com/vnt-dev/libsm#f9e1b8cf20d0829efb4934a940d0ba4f3ee0ac14"
dependencies = [
"byteorder",
"getrandom",
@@ -954,7 +955,7 @@ dependencies = [
[[package]]
name = "lwip-rs"
version = "0.1.0"
-source = "git+https://github.com/lbl8603/lwip-rs#3133f0c3bde55333a27641182ae3550e7acc2a39"
+source = "git+https://github.com/vnt-dev/lwip-rs#3133f0c3bde55333a27641182ae3550e7acc2a39"
dependencies = [
"bindgen",
"cc",
@@ -1120,7 +1121,7 @@ dependencies = [
[[package]]
name = "openssl-sys"
version = "0.9.93"
-source = "git+https://github.com/lbl8603/rust-openssl#e8b3d2c02d2d07a0e4a82ff4e4bef210f4bc71c8"
+source = "git+https://github.com/vnt-dev/rust-openssl#e8b3d2c02d2d07a0e4a82ff4e4bef210f4bc71c8"
dependencies = [
"cc",
"libc",
@@ -1834,6 +1835,15 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "sys-locale"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e801cf239ecd6ccd71f03d270d67dd53d13e90aab208bf4b8fe4ad957ea949b0"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "tempfile"
version = "3.10.1"
@@ -1958,6 +1968,7 @@ dependencies = [
"libloading",
"log",
"rand",
+ "sha2",
"widestring",
"winapi",
]
@@ -2095,7 +2106,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "vn-link"
-version = "1.2.11"
+version = "1.2.12"
dependencies = [
"anyhow",
"crossbeam-utils",
@@ -2108,7 +2119,7 @@ dependencies = [
[[package]]
name = "vn-link-cli"
-version = "1.2.11"
+version = "1.2.12"
dependencies = [
"common",
"log",
@@ -2118,7 +2129,7 @@ dependencies = [
[[package]]
name = "vnt"
-version = "1.2.11"
+version = "1.2.12"
dependencies = [
"aes",
"aes-gcm",
@@ -2165,7 +2176,7 @@ dependencies = [
[[package]]
name = "vnt-cli"
-version = "1.2.11"
+version = "1.2.12"
dependencies = [
"anyhow",
"chrono",
diff --git a/README.md b/README.md
index 26a92ba..a1006bc 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ A virtual network tool (VPN)
将不同网络下的多个设备虚拟到一个局域网下
-### vnt-cli参数详解 [参数说明](https://github.com/lbl8603/vnt/blob/main/vnt-cli/README.md)
+### vnt-cli参数详解 [参数说明](https://github.com/vnt-dev/vnt/blob/main/vnt-cli/README.md)
### 快速使用:
@@ -39,7 +39,7 @@ A virtual network tool (VPN)
```
4. 最后可以用虚拟ip实现设备间相互访问
-
+
5. 帮助,使用-h命令查看
### 更多玩法
@@ -56,7 +56,7 @@ A virtual network tool (VPN)
- 需要root/管理员权限
- vnt-cli需要使用命令行运行
- Mac和Linux下需要加可执行权限(例如:chmod +x ./vnt-cli)
-- 可以自己搭注册和中继服务器([server](https://github.com/lbl8603/vnts))
+- 可以自己搭注册和中继服务器([server](https://github.com/vnt-dev/vnts))
- vnt使用stun服务器探测网络NAT类型,默认使用谷歌和腾讯的stun服务器,也可自己搭建(-e参数指定)
### 编译
@@ -181,7 +181,7 @@ sudo pfctl -f /etc/pf.conf -e
### GUI
-支持安卓和Windows [下载](https://github.com/lbl8603/VntApp/releases/)
+支持安卓和Windows [下载](https://github.com/vnt-dev/VntApp/releases/)
### 特性
@@ -291,7 +291,7 @@ QQ: 1034868233
### 赞助
如果VNT对你有帮助,欢迎打赏作者
-
+
### 其他
@@ -302,6 +302,6 @@ QQ: 1034868233
### 参与贡献
-
-
+
+
diff --git a/common/Cargo.toml b/common/Cargo.toml
index 80fa20b..e7dd42b 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "common"
-version = "1.2.11"
+version = "1.2.12"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -16,6 +16,7 @@ serde_yaml = "0.9.32"
getopts = "0.2.21"
gethostname = "0.4.3"
uuid = { version = "1.8.0", features = ["v4"] }
+sys-locale = "0.3.1"
[features]
default = []
diff --git a/common/src/cli.rs b/common/src/cli.rs
index e66bab8..d340ade 100644
--- a/common/src/cli.rs
+++ b/common/src/cli.rs
@@ -5,10 +5,12 @@ use crate::{config, generated_serial_number};
use anyhow::anyhow;
use console::style;
use getopts::Options;
+use std::collections::HashMap;
use std::io;
use std::net::Ipv4Addr;
use std::path::PathBuf;
use std::str::FromStr;
+use sys_locale::get_locale;
use vnt::channel::punch::PunchModel;
use vnt::channel::UseChannelType;
use vnt::cipher::CipherModel;
@@ -75,6 +77,7 @@ pub fn parse_args_config() -> anyhow::Result