From 4d100286f97069e39af0064f676a15c1e119d6da Mon Sep 17 00:00:00 2001 From: hexian000 Date: Sat, 6 Jan 2024 19:23:43 +0800 Subject: [PATCH] doc: add a hint Signed-off-by: hexian000 --- README.md | 4 ++-- src/session.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fdc56d0..ccc839b 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,7 @@ Rendezvous mode may be useful for accessing servers behind NAT. The rendezvous s ```json { - "connect": "127.0.0.1:1080", + "connect": "127.0.0.1:25565", "rendezvous_server": "203.0.113.1:12345", "method": "xchacha20poly1305_ietf", "psk": "// your key here" @@ -274,7 +274,7 @@ Rendezvous mode may be useful for accessing servers behind NAT. The rendezvous s ```json { - "listen": "127.0.0.1:1080", + "listen": "127.0.0.1:25565", "rendezvous_server": "203.0.113.1:12345", "method": "xchacha20poly1305_ietf", "psk": "// your key here" diff --git a/src/session.c b/src/session.c index 5f602e4..d06ffe0 100644 --- a/src/session.c +++ b/src/session.c @@ -577,8 +577,8 @@ ss0_on_pong(struct server *restrict s, struct msgframe *restrict msg) format_iec_bytes(bw_rx, sizeof(bw_rx), rx); format_iec_bytes(bw_tx, sizeof(bw_tx), tx); - LOGD_F("roundtrip finished, RTT: %" PRIu32 " ms, " - "capability rx: %s/s, tx: %s/s", + LOGD_F("roundtrip finished in %" PRIu32 " ms, " + "capacity rx: %s/s, tx: %s/s", now_ms - tstamp, bw_rx, bw_tx); s->pkt.inflight_ping = TSTAMP_NIL;