- fixed some issues related to "config listen 1" mode
i.e. do not write some lines twice when in this mode
This commit is contained in:
@@ -68,7 +68,8 @@ void WriteToCommandLogId(char *prompt, int id, char *text)
|
||||
time_t now;
|
||||
char stamp1[32], stamp2[32], buffer[80];
|
||||
int doStamp, doStampId;
|
||||
|
||||
int old;
|
||||
|
||||
/* suppress status messages */
|
||||
if (strstr(text, "status =") != NULL) {
|
||||
return;
|
||||
@@ -196,6 +197,7 @@ void WriteToCommandLogId(char *prompt, int id, char *text)
|
||||
if (pServ->pTasker != NULL) {
|
||||
if (doStamp) {
|
||||
TaskSignal(pServ->pTasker, COMLOG, stamp1);
|
||||
SCOnlySockWrite(GetSendingConnection(), stamp1, eLog);
|
||||
}
|
||||
TaskSignal(pServ->pTasker, COMLOG, pCopy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user