Primary Upstream DNS Server IPV6 Validation Issue
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
調査の方向性
app/src/main/java/net/pangolin/Pangolin/SettingsActivity.kt の android.util.Patterns のインポートと、267 行目付近のバリデーションから始めます。Android の設定画面で Cloudflare の IPv6 の例を両方使って問題を再現し、その後、有効な IPv6 アドレスがバリデーションエラーなしで受け入れられることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the Bug
When using the Android app, IPV6 addresses fail the validation check in the "Primary Upstream DNS Server" field on the settings page.
The example listed below the field uses an address that is not accepted despite being valid and listed as an example.
Please watch the video linked below for further explanation and information.
https://github.com/fosrl/android/blob/main/app/src/main/java/net/pangolin/Pangolin/SettingsActivity.kt#L13
import android.util.Patterns
https://github.com/fosrl/android/blob/main/app/src/main/java/net/pangolin/Pangolin/SettingsActivity.kt#L267
isDnsField -> {
if (newValue.isEmpty()) {
true
} else {
Patterns.IP_ADDRESS.matcher(newValue).matches()
}
}
Patterns.IP_ADDRESS might not support IPV6 addresses.
Environment
- OS Type & Version: Android 17 (CPA2A.260605.016), Xiaomi HyperOS 3.0.336.0
- Pangolin Version: 1.23.0
- Edition (Community or Enterprise): Community
- Gerbil Version: 1.5.2
- Traefik Version: 3.7.13
- Newt Version: 1.18
- Client Version: 0.8.0
To Reproduce
- Access the Android Pangolin app
- Open the sidebar navigation menu
- Access "Settings" from the navigation menu
- Tap "Primary Upstream DNS Server" to edit the setting
- Enter Cloudflare's IPV6 DNS address
2606:4700:4700::1111or2606:4700:4700:0000:0000:0000:0000:1111(Expanded - full 128-Bit Form) - Note the momentary flash of validation feedback (red error message) which disappears.
https://github.com/user-attachments/assets/cf6af099-604a-43fb-9e45-c7be1f1a5896
AI Disclosure
N/A
Expected Behavior
Accept IPV6 address formats, fix the validation on the field to support IPV6 addresses.
- 主要言語
- Kotlin
- スター
- 44
- フォーク
- 11
- 平均マージ
- 1分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fosrl/android のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
needs investigating
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
Switching organizations breaks Olm hole punching for the same client installation対応中かも @oschwartz10612 が 6 日前に担当しました。 オープンneeds investigating
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SimonHalvdansson/Harmonic-HN#363 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/capacitor-file-transfer#83 · コメント 1 件 ·
-
Meta request
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
keiyoushi/extensions-source#19500 ·
メンテナーはふだん 1 日以内に返信
-
go 🏃 testing 🧪
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
valkey-io/valkey-glide#7239 ·
メンテナーはふだん 3 日以内に返信