penguin/tinyproxy

An L4 proxy designed to act as a tiny transparent shim

commit bcdd23667fc096b8fc9956cb4bbf9464521612df

author斟酌 鵬兄 <tgckpg@gmail.com>
date2026-05-31T20:09:31Z
subjectAdded warning for windows
commit bcdd23667fc096b8fc9956cb4bbf9464521612df
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2026-05-31T20:09:31Z

    Added warning for windows
---
 src/datagram_route.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/datagram_route.c b/src/datagram_route.c
index 8e73a3b..3d282fe 100644
--- a/src/datagram_route.c
+++ b/src/datagram_route.c
@@ -52,6 +52,11 @@ int start_datagram_route(
 	ctx->raw_fd = EVUTIL_INVALID_SOCKET;
 
 	if (r->opts.broadcast_reply == BROADCAST_REPLY_UPSTREAM) {
+#ifdef _WIN32
+		LOG_WARN("broadcast_reply=upstream may not work on Windows",
+				"reason", _LOGV("Winsock may block raw UDP packets with a non-local source address")
+				);
+#endif
 		rc = datagram_raw_open_ipv4(&ctx->raw_fd);
 		if (rc != 0) {
 			return rc;