Skip to content

Commit

Permalink
fix high cpu usage & version 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkD committed Oct 13, 2024
1 parent 0b0400f commit e53664d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "corplink-rs"
version = "0.5.0"
version = "0.5.1"
edition = "2021"

[dependencies]
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ macos 要求 tun 设备的名称满足正则表达式 `utun[0-9]*` ,因此需
// latency/default
// latency: choose the server with the lowest latency
// default: choose the first available server
"vpn_select_strategy": "latency"
"vpn_select_strategy": "latency",
// use vpn dns for macos
// NOTE: if process doesn't exit gracefully, your dns may not be restored
"use_vpn_dns": false
}
```

Expand Down Expand Up @@ -189,6 +192,9 @@ graph TD;

# Changelog

- 0.5.1
- support using dns from server for macos(@fanwenlin)
- fix high cpu usage
- 0.5.0
- add tcp support for wg-go
- 0.4.4
Expand Down
2 changes: 1 addition & 1 deletion libwg/wireguard-go
2 changes: 1 addition & 1 deletion pack/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=corplink-rs
_pkgbase=corplink-rs
pkgver=5.0
pkgver=5.1
pkgrel=1
pkgdesc='Corplink client written in Rust'
arch=('i686' 'x86_64')
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ async fn main() {
let conf_file = parse_arg();
let mut conf = Config::from_file(&conf_file).await;
let name = conf.interface_name.clone().unwrap();

#[cfg(target_os = "macos")]
let use_vpn_dns = conf.use_vpn_dns.unwrap_or(false);

match conf.server {
Expand Down

0 comments on commit e53664d

Please sign in to comment.