Fix CService constructor ambiguity in GetEffectiveTorProxy()

Cast GetArg() return (int64_t) to unsigned short for the port
parameter to resolve overload ambiguity across all platforms.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 01:26:46 -07:00
parent e8b2339339
commit d42c5aa799
+1 -1
View File
@@ -93,7 +93,7 @@ static std::string GetEffectiveTorProxy()
}
if (mapArgs.count("-tor") && mapArgs["-tor"] != "0") {
CService torProxy(mapArgs["-tor"], GetArg("-torsocks", 19099));
CService torProxy(mapArgs["-tor"], (unsigned short)GetArg("-torsocks", 19099));
if (torProxy.IsValid()) {
return torProxy.ToStringIPPort();
}