fix(network): respect configured bind address - #5700
Conversation
Bundle ReportChanges will increase total bundle size by 124 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sunshine-esmAssets Changed:
Files in
|
| * @brief Test that Web UI URLs use the configured IPv4 bind address. | ||
| */ | ||
| TEST_F(LaunchUiUrlTest, UsesConfiguredIPv4Address) { | ||
| config::sunshine.bind_address = "100.70.253.56"; |
| * @brief Test that an explicit IPv4 bind address selects an IPv4 socket. | ||
| */ | ||
| TEST_F(BindAddressTest, IPv4AddressSelectsIPv4Family) { | ||
| config::sunshine.bind_address = "10.0.0.101"; |
| config::sunshine.bind_address = ""; | ||
| EXPECT_EQ(net::get_bind_address_url_host(), "localhost"); | ||
|
|
||
| config::sunshine.bind_address = "100.70.253.56"; |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5700 +/- ##
==========================================
+ Coverage 37.67% 37.76% +0.08%
==========================================
Files 104 104
Lines 26103 26124 +21
Branches 11561 11566 +5
==========================================
+ Hits 9834 9865 +31
- Misses 12569 14810 +2241
+ Partials 3700 1449 -2251
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 49 files with indirect coverage changes Continue to review full report in Codecov by Harness.
|
Screenshot ComparisonPR #5700 screenshots vs Matrix:
|
Use IPv4 sockets when an explicit IPv4 bind address is configured in dual-stack mode. This preserves bind failures for unavailable addresses while avoiding protocol mismatches. Generate Web UI launch links from the configured address and bracket IPv6 literals. Document the address requirements and cover effective families and generated URLs with unit tests.
370de03 to
22de33b
Compare
|























































































Description
Use IPv4 sockets when an explicit IPv4 bind address is configured in dual-stack mode. This preserves bind failures for unavailable addresses while avoiding protocol mismatches.
Generate Web UI launch links from the configured address and bracket IPv6 literals. Document the address requirements and cover effective families and generated URLs with unit tests.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.