From 7edb649c3218498dc253bd4fdae97dd1d7365838 Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Fri, 20 Dec 2019 14:50:24 +0100 Subject: [PATCH] Release 1.2.0 --- CHANGELOG.md | 3 ++- Cargo.lock | 13 ++++--------- Cargo.toml | 4 ++-- assets/changelog.txt | 16 ++++++++++++++++ src/main.rs | 2 +- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf3ccaf..54debaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ This project follows [semantic versioning](http://semver.org). -### Unreleased +### v1.2.0 (2019-12-20) - [added] Added service restrictions to systemd - [changed] Rust version 1.40.0 @@ -10,6 +10,7 @@ This project follows [semantic versioning](http://semver.org). - [changed] Set builders to Ubuntu 16.04 and CentOS 7 - [changed] Set keepalive to 120 secs when NAT is detected - [changed] Deleting beacon file at shutdown +- [changed] Updated dependencies - [fixed] Added parameter keepalive to manpage - [fixed] Fixed problems on stats file when dropping permissions - [fixed] Deleting files before overwriting them diff --git a/Cargo.lock b/Cargo.lock index 59937fd..a8d3d1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -500,13 +500,8 @@ dependencies = [ [[package]] name = "time" -version = "0.1.42" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", - "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] [[package]] name = "unicode-bidi" @@ -561,7 +556,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "vpncloud" -version = "1.1.0" +version = "1.2.0" dependencies = [ "cc 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)", "daemonize 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -581,7 +576,7 @@ dependencies = [ "signal 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "siphasher 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "yaml-rust 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -783,7 +778,7 @@ dependencies = [ "checksum syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)" = "dff0acdb207ae2fe6d5976617f887eb1e35a2ba52c13c7234c790960cdad9238" "checksum tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" "checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b" -"checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" +"checksum time 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fcc26de0a81a07c8352b548977862908fa9863e0e6e4f0eb36b2a9f4f8845585" "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" "checksum unicode-normalization 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "b561e267b2326bb4cebfc0ef9e68355c7abe6c6f522aeac2f5bf95d56c59bdcf" "checksum unicode-segmentation 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0" diff --git a/Cargo.toml b/Cargo.toml index 9d00d05..88599d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vpncloud" -version = "1.1.0" +version = "1.2.0" authors = ["Dennis Schwerdel "] build = "build.rs" license = "GPL-3.0" @@ -12,7 +12,7 @@ readme = "README.md" edition = "2018" [dependencies] -time = "0.1" +time = "0.2" docopt = "^1" serde = "1.0" serde_derive = "1.0" diff --git a/assets/changelog.txt b/assets/changelog.txt index 4494974..ef329df 100644 --- a/assets/changelog.txt +++ b/assets/changelog.txt @@ -1,3 +1,19 @@ +vpncloud (1.2.0) stable; urgency=medium + + * [added] Added service restrictions to systemd + * [changed] Rust version 1.40.0 + * [changed] Also drop privileges in foreground mode + * [changed] Set builders to Ubuntu 16.04 and CentOS 7 + * [changed] Set keepalive to 120 secs when NAT is detected + * [changed] Deleting beacon file at shutdown + * [changed] Updated dependencies + * [fixed] Added parameter keepalive to manpage + * [fixed] Fixed problems on stats file when dropping permissions + * [fixed] Deleting files before overwriting them + * [fixed] Fixed duplicate port bindings + + -- Dennis Schwerdel Fri, 20 Dec 2019 16:31:07 +0100 + vpncloud (1.1.0) stable; urgency=medium * [added] Exchange peer timeout and adapt keepalive accordingly diff --git a/src/main.rs b/src/main.rs index c919cbc..0243064 100644 --- a/src/main.rs +++ b/src/main.rs @@ -127,7 +127,7 @@ impl log::Log for DualLogger { println!("{} - {}", record.level(), record.args()); let mut file = self.file.lock().expect("Lock poisoned"); if let Some(ref mut file) = *file { - let time = time::strftime("%F %T", &time::now()).expect("Failed to format timestamp"); + let time = time::PrimitiveDateTime::now().format("%F %T"); writeln!(file, "{} - {} - {}", time, record.level(), record.args()) .expect("Failed to write to logfile"); }