mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #1165] [MERGED] Fix listen on AnyIP for url 0.0.0.0 #1262
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/1165
Author: @cocoon
Created: 9/4/2024
Status: ✅ Merged
Merged: 9/7/2024
Merged by: @StefH
Base:
master← Head:fix/ListenAnyIp0000📝 Commits (10+)
ae82432fix listen to AnyIP if url is 0.0.0.0e4f587dAdd Test for listenin on AnyIP for url 0.0.0.03ce97e0add missing using, use var, indent, remove empty line38ac9bfremove assert for ipv4/v6 address list4a8430ftest only if NET6_0_OR_GREATERb27f0a5use same code style3a2d68aadd missing +97a3d9dAsser. to Assert6ccc15bsplit single test into one for IPv4 and one for IPv646aca87Create IgnoreOnContinuousIntegrationFact.cs📊 Changes
3 files changed (+102 additions, -6 deletions)
View changed files
📝
src/WireMock.Net/Owin/AspNetCoreSelfHost.NETStandard.cs(+9 -2)➕
test/WireMock.Net.Tests/Facts/IgnoreOnContinuousIntegrationFact.cs(+22 -0)📝
test/WireMock.Net.Tests/WireMockServerTests.cs(+71 -4)📄 Description
To listen on all available IPs this fix allows to use the following URL:
I tried to add a test, but I think the test can be improved.
Could be split in a test for IPv4 and IPv6 and maybe the naming is not perfect.
Getting all IPs could be moved into a utility method ...
Feel free to improve afterwards.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.