Created
December 9, 2023 18:40
-
-
Save Retropex/bc6653e4b4dd2ebbe25ac7fab0a7101a to your computer and use it in GitHub Desktop.
hide user agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From fe3d04c5f4a47f64700983e787df755fac275471 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?L=C3=A9o=20Haf?= <[email protected]> | |
Date: Sat, 9 Dec 2023 18:23:48 +0000 | |
Subject: [PATCH] Rename user agent | |
--- | |
src/clientversion.cpp | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/src/clientversion.cpp b/src/clientversion.cpp | |
index e3c13e1bdad7a..1c097943a9f3a 100644 | |
--- a/src/clientversion.cpp | |
+++ b/src/clientversion.cpp | |
@@ -77,7 +77,7 @@ std::string FormatSubVersion(const std::string& name, int nClientVersion, const | |
} | |
ss << "/"; | |
if (!fBaseNameOnly) | |
- ss << "Knots:20231115/"; | |
+ ss << ""; | |
return ss.str(); | |
} |
only work with Bitcoin Knots 25.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
command to patch source code
patch -ruN bitcoin/src/clientversion.cpp < useragent.patch