Skip to content

Commit

Permalink
[ServiceFabric Provider] Fix URLACL issue for dtfx proxy endpoint (Az…
Browse files Browse the repository at this point in the history
…ure#439)

DTFx Proxy listener in Service Fabric application is using IP address in the endpoint address which causes URL ACL issue. So changed it to use wildcard (+) instead of IP address.

Co-authored-by: Siyao Wu <[email protected]>
  • Loading branch information
willgo962 and Siyao Wu authored Aug 17, 2020
1 parent c829c8d commit dc1c264
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFrameworks>net461</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageId>Microsoft.Azure.DurableTask.AzureServiceFabric</PackageId>
<Version>2.3.1</Version>
<Version>2.3.2</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public Task<string> OpenAsync(CancellationToken cancellationToken)

try
{
this.serverHandle = WebApp.Start(listeningAddress, appBuilder => this.owinAppBuilder.Startup(appBuilder));
var builder = new UriBuilder(listeningAddress);
builder.Host = "+";
var listeningAddressInPlusFormat = builder.ToString();
this.serverHandle = WebApp.Start(listeningAddressInPlusFormat, appBuilder => this.owinAppBuilder.Startup(appBuilder));
return Task.FromResult(listeningAddress);
}
catch (Exception ex)
Expand Down

0 comments on commit dc1c264

Please sign in to comment.