This commit is contained in:
Kukks
2023-05-15 15:56:45 +02:00
parent 545100820e
commit 0bb47d4a97
2 changed files with 7 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
<PropertyGroup>
<Product>Wabisabi Coinjoin</Product>
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
<Version>1.0.42</Version>
<Version>1.0.43</Version>
</PropertyGroup>
<!-- Plugin development properties -->
@@ -43,7 +43,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NNostr.Client" Version="0.0.27" />
<PackageReference Include="NNostr.Client" Version="0.0.28" />
<PackageReference Include="WabiSabi" Version="1.0.1.2" />
</ItemGroup>
<Target Name="DeleteExampleFile" AfterTargets="Publish">

View File

@@ -33,9 +33,12 @@ Privacy risks: as the coordinator, the user may have access to sensitive transac
Reputation risks: as the coordinator, the user may be associated with illegal activities and may face reputational damage.";
private readonly WabisabiCoordinatorService _wabisabiCoordinatorService;
public WabisabiCoordinatorConfigController(WabisabiCoordinatorService wabisabiCoordinatorService)
private readonly BTCPayNetworkProvider _networkProvider;
public WabisabiCoordinatorConfigController(WabisabiCoordinatorService wabisabiCoordinatorService, BTCPayNetworkProvider networkProvider)
{
_wabisabiCoordinatorService = wabisabiCoordinatorService;
_networkProvider = networkProvider;
}
[HttpGet("")]
@@ -86,9 +89,8 @@ Reputation risks: as the coordinator, the user may be associated with illegal ac
switch (command)
{
case "nostr-current-url":
if (IsLocalNetwork(Request.GetAbsoluteRoot()))
if (_networkProvider.NetworkType != ChainName.Regtest && IsLocalNetwork(Request.GetAbsoluteRoot()))
{
TempData["ErrorMessage"] = "the current url is only reachable from your local network. You need a public domain or use Tor.";
return View(vm);
}