ports/net/ntpd-rs/files/patch-test-binaries_src_bin_peer-state.rs
Mikael Urankar 811c1b9162 net/ntpd-rs: Add new port
ntpd-rs is an NTP implementation written in Rust, with a focus on security and
stability. It includes client and server functionality and supports NTS.

WWW: https://tweedegolf.nl/en/pendulum

PR:		272774
2023-08-24 11:02:18 +02:00

11 lines
565 B
Rust

--- test-binaries/src/bin/peer-state.rs.orig 2023-07-28 10:30:19 UTC
+++ test-binaries/src/bin/peer-state.rs
@@ -3,7 +3,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
- let mut stream = tokio::net::UnixStream::connect("/run/ntpd-rs/observe").await?;
+ let mut stream = tokio::net::UnixStream::connect("/var/run/ntpd-rs/observe").await?;
let mut msg = Vec::with_capacity(16 * 1024);
let output: ObservableState = ntp_daemon::sockets::read_json(&mut stream, &mut msg).await?;