[PR #481] [MERGED] #427: Hotfix for ipv6 represented as subnet usecase #522

Closed
opened 2026-02-26 04:35:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mageddo/dns-proxy-server/pull/481
Author: @mageddo
Created: 6/21/2024
Status: Merged
Merged: 6/21/2024
Merged by: @mageddo

Base: masterHead: feat/427


📝 Commits (4)

  • 4701bce Hotfix for ipv6 represented as subnet usecase
  • 8b693f8 release notes
  • 84f66e6 [Gradle Release Plugin] - new version commit: '3.19.7-snapshot'.
  • ac5edda adjusting ref

📊 Changes

6 files changed (+79 additions, -1 deletions)

View changed files

📝 RELEASE-NOTES.md (+3 -0)
📝 gradle.properties (+1 -1)
📝 src/main/java/com/mageddo/dnsproxyserver/solver/docker/dataprovider/mapper/NetworkMapper.java (+13 -0)
📝 src/test/java/com/mageddo/dnsproxyserver/solver/docker/dataprovider/mapper/NetworkMapperTest.java (+19 -0)
📝 src/test/java/testing/templates/docker/NetworkTemplates.java (+3 -0)
src/test/resources/templates/docker/network/004.json (+40 -0)

📄 Description

As reported at #427, For an unidentified reason, sometimes network api responds an IPV6 with a subnet mask instead of a plain IP which is the expected behavior, a hotfix for that was made to extract the IP from this string when it happens, it only happens with ipv6 addresses.

Expected address

"Gateway": "fddb:21e4:36d4:2::1"

Actual address

"Gateway": "fddb:21e4:36d4:2::1/64"

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mageddo/dns-proxy-server/pull/481 **Author:** [@mageddo](https://github.com/mageddo) **Created:** 6/21/2024 **Status:** ✅ Merged **Merged:** 6/21/2024 **Merged by:** [@mageddo](https://github.com/mageddo) **Base:** `master` ← **Head:** `feat/427` --- ### 📝 Commits (4) - [`4701bce`](https://github.com/mageddo/dns-proxy-server/commit/4701bce8c112c84ca113bff582a0f89f3abf3548) Hotfix for ipv6 represented as subnet usecase - [`8b693f8`](https://github.com/mageddo/dns-proxy-server/commit/8b693f8d2f6767bab0a1b1de4ca839099590fae5) release notes - [`84f66e6`](https://github.com/mageddo/dns-proxy-server/commit/84f66e69cfd1c3a1c309c23c2eeb4ba809a768d9) [Gradle Release Plugin] - new version commit: '3.19.7-snapshot'. - [`ac5edda`](https://github.com/mageddo/dns-proxy-server/commit/ac5edda7444a3848b31626f75cedd0d3a133c258) adjusting ref ### 📊 Changes **6 files changed** (+79 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `RELEASE-NOTES.md` (+3 -0) 📝 `gradle.properties` (+1 -1) 📝 `src/main/java/com/mageddo/dnsproxyserver/solver/docker/dataprovider/mapper/NetworkMapper.java` (+13 -0) 📝 `src/test/java/com/mageddo/dnsproxyserver/solver/docker/dataprovider/mapper/NetworkMapperTest.java` (+19 -0) 📝 `src/test/java/testing/templates/docker/NetworkTemplates.java` (+3 -0) ➕ `src/test/resources/templates/docker/network/004.json` (+40 -0) </details> ### 📄 Description As reported at #427, For an unidentified reason, sometimes network api responds an IPV6 with a subnet mask instead of a plain IP which is the expected behavior, a hotfix for that was made to extract the IP from this string when it happens, it only happens with ipv6 addresses. Expected address ``` "Gateway": "fddb:21e4:36d4:2::1" ``` Actual address ``` "Gateway": "fddb:21e4:36d4:2::1/64" ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 04:35:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#522
No description provided.