diff options
author | Himbeer <himbeer@disroot.org> | 2025-03-24 11:44:24 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-03-24 11:44:38 +0100 |
commit | 37d506783220198f52a594f010dea642975eee4f (patch) | |
tree | 18874352b0b0f0ab7d6ad0e358454db431b1e308 | |
parent | 6c3c336c0efbeda3c3c0df972dd082d06a8e8774 (diff) |
Print rollback reason
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 439d8dc..e122e74 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,6 +89,13 @@ fn check_rollback(ln: &TcpListener) -> io::Result<()> { } if now.duration_since(t_start) >= CHECK_TIMEOUT { + eprintln!( + "rollback, IPv4: {}, IPv6: {}, inbound: {}", + if outbound_healthy_v4 { "OK" } else { "ERR" }, + if outbound_healthy_v6 { "OK" } else { "ERR" }, + if inbound_healthy { "OK" } else { "ERR" } + ); + return rollback(); } |