Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Primary Upstream DNS Server IPV6 Validation Issue

オープン 初心者向け
#59 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
android, kotlin
領域
mobile

調査の方向性

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
  1. Access the Android Pangolin app
  2. Open the sidebar navigation menu
  3. Access "Settings" from the navigation menu
  4. Tap "Primary Upstream DNS Server" to edit the setting
  5. Enter Cloudflare's IPV6 DNS address 2606:4700:4700::1111 or 2606:4700:4700:0000:0000:0000:0000:1111 (Expanded - full 128-Bit Form)
  6. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fosrl/android のほかの issue

fosrl/android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。