Fix: crash on standalone services

This commit is contained in:
Vladimir Dubrovin 2026-05-04 12:03:02 +03:00
parent da8a8615f4
commit 5f06879843

View file

@ -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 {