From b80ce40f0d08e2845276c09de735fd69f2bb352b Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 27 Oct 2025 22:58:17 +0100 Subject: [PATCH] add NOHOLEPUNCH flag to disable holepunch entirely --- src/Makefile | 1 + src/Makefile.d/features.mk | 1 + src/doomdef.h | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index dbeb0e6d5..c481c0349 100644 --- a/src/Makefile +++ b/src/Makefile @@ -49,6 +49,7 @@ # Already enabled by default for 32-bit # Windows. # NOCURL=1 - Disable libcurl--HTTP capability. +# NOHOLEPUNCH=1 - Disable holepunch capability. # NOLIBGME=1 - Disable game music emu, retro VGM support. # NOOPENMPT=1 - Disable module (tracker) music support. # NOMIXER=1 - Disable SDL Mixer (audio playback). diff --git a/src/Makefile.d/features.mk b/src/Makefile.d/features.mk index d6855433f..2eda124cf 100644 --- a/src/Makefile.d/features.mk +++ b/src/Makefile.d/features.mk @@ -7,6 +7,7 @@ passthru_opts+=\ MOBJCONSISTANCY PACKETDROP ZDEBUG\ HAVE_MINIUPNPC\ HAVE_DISCORDRPC DEVELOP\ + NOHOLEPUNCH\ HAVE_BLUAJIT # build with debugging information diff --git a/src/doomdef.h b/src/doomdef.h index dfc351685..5f4c3ed0f 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -653,7 +653,9 @@ extern const char *compdate, *comptime, *comprevision, *compbranch; #if defined (HAVE_CURL) #define MASTERSERVER -//#define HOLEPUNCH +#ifndef NOHOLEPUNCH +#define HOLEPUNCH +#endif #else #undef UPDATE_ALERT #endif