mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
update
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user