mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-09 02:57:21 -03:00
onionready: always refer warnnear
This commit is contained in:
parent
6c704d20c4
commit
4cc50f41ce
1 changed files with 2 additions and 0 deletions
2
worker.c
2
worker.c
|
@ -130,6 +130,8 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion,int warnn
|
|||
strcpy(&sname[onionendpos],pwarn);
|
||||
const size_t oprintlen = printlen;
|
||||
const size_t printlen = oprintlen + (warnnear ? strlen(pwarn)-1 : 0);
|
||||
#else
|
||||
(void) warnnear;
|
||||
#endif
|
||||
fwrite(&sname[printstartpos],printlen,1,fout);
|
||||
fflush(fout);
|
||||
|
|
Loading…
Reference in a new issue