Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Ignore check localhost to whitelist on Bitcoin Core #479

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions NBXplorer/Backend/Indexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,16 @@ private async Task ConnectNode(CancellationToken token)
else
{
var addressStr = peer.Address is IPEndPoint end ? end.Address.ToString() : peer.Address?.ToString();
Logger.LogWarning($"{Network.CryptoCode}: Your NBXplorer server is not whitelisted by your node," +
$" you should add \"whitelist={addressStr}\" to the configuration file of your node. (Or use whitebind)");

if (addressStr == "127.0.0.1" || addressStr == "::1")
{
Logger.LogInformation($"Connection is from localhost, no whitelist needed.");
}
else
{
Logger.LogWarning($"{Network.CryptoCode}: Your NBXplorer server is not whitelisted by your node," +
$" you should add \"whitelist={addressStr}\" to the configuration file of your node. (Or use whitebind)");
}
}

int waitTime = 10;
Expand Down