From 5f068798433b0dbc8f8bc76a020eeb9d2f2929ce Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Mon, 4 May 2026 12:03:02 +0300 Subject: [PATCH] Fix: crash on standalone services --- src/structures.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/structures.h b/src/structures.h index 253be63..bdfdb27 100644 --- a/src/structures.h +++ b/src/structures.h @@ -517,11 +517,6 @@ struct srvparam { AUTHFUNC authfunc; PROXYFUNC pf; SOCKET srvsock, cbsock; -#ifndef NOUDPMAIN - unsigned char udpbuf[UDPBUFSIZE]; - unsigned char udpbuf2[UDPBUFSIZE]; - int udplen; -#endif int childcount; int maxchild; int backlog; @@ -573,6 +568,11 @@ struct srvparam { uint16_t targetport; unsigned char replace; time_t time_start; +#ifndef NOUDPMAIN + unsigned char udpbuf[UDPBUFSIZE]; + unsigned char udpbuf2[UDPBUFSIZE]; + int udplen; +#endif }; struct clientparam {