mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Keep the clock, timetoexit and needreload out of conf
They are the state of the process, not configuration: conf.time (now curtime), timetoexit and needreload are globals of their own. Plugins reach needreload through a pointer added at the end of struct pluginlink; LdapPlugin uses it. The extern for a paused global, never defined, goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3b2d664563
commit
a2592f4038
15 files changed
+61
-58
No files matched your search
+2
-2
@@ -222,7 +222,8 @@ extern RESOLVFUNC resolvfunc;
|
||||
|
||||
extern int wday;
|
||||
extern time_t basetime;
|
||||
extern int timetoexit;
|
||||
extern int timetoexit, needreload;
|
||||
extern time_t curtime; /* the clock, kept by the main thread */
|
||||
|
||||
extern struct extparam conf;
|
||||
|
||||
@@ -315,7 +316,6 @@ int socks5_udp_build_hdr(unsigned char *buf, PROXYSOCKADDRTYPE *addr);
|
||||
extern struct auth authfuncs[];
|
||||
|
||||
int reload (void);
|
||||
extern int paused;
|
||||
extern int demon;
|
||||
|
||||
unsigned char * mycrypt(const unsigned char *key, const unsigned char *salt, unsigned char *buf);
|
||||
|
||||
Reference in new issue
Block a user