mirror of
https://github.com/transmission/transmission
synced 2025-03-09 21:54:09 +00:00
fix: lpd fixup (#3704)
* chore: fix copyright of lpd header file * chore: remove unnecessary forward declarations * fix: LSD messages use proper format even when no cookie
This commit is contained in:
parent
e191407dee
commit
377134f475
2 changed files with 5 additions and 5 deletions
|
@ -96,9 +96,10 @@ auto makeAnnounceMsg(std::string_view cookie, tr_port port, std::string_view con
|
|||
|
||||
if (!std::empty(cookie))
|
||||
{
|
||||
ostr << "cookie: " << cookie << CrLf << CrLf << CrLf;
|
||||
ostr << "cookie: " << cookie << CrLf;
|
||||
}
|
||||
|
||||
ostr << CrLf << CrLf;
|
||||
return ostr.str();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// This file Copyright © 2010 Johannes Lieder.
|
||||
// It may be used under the MIT (SPDX: MIT) license.
|
||||
// This file Copyright © 2022 Mnemosyne LLC.
|
||||
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
||||
// or any future license endorsed by Mnemosyne LLC.
|
||||
// License text can be found in the licenses/ folder.
|
||||
|
||||
#pragma once
|
||||
|
@ -18,8 +19,6 @@
|
|||
#include "net.h" // for tr_address, tr_port
|
||||
#include "timer.h"
|
||||
|
||||
class tr_torrents;
|
||||
struct tr_session;
|
||||
struct event_base;
|
||||
|
||||
class tr_lpd
|
||||
|
|
Loading…
Add table
Reference in a new issue