1
0
Fork 0
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:
Charles Kerr 2022-08-24 22:18:58 -05:00 committed by GitHub
parent e191407dee
commit 377134f475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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();
}

View file

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