Wrong scoped literal ipv6 with zone index parsing

Đang mở Phù hợp với người mới
#4,836 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, networking

Hướng nghiên cứu

Tìm trong mã Go đường đi phân tích địa chỉ máy khách phát ra “cannot parse the client address”, sau đó kiểm tra các bài kiểm thử phân tích IPv6 hiện có. Thêm địa chỉ có scope được báo cáo (fe80::ac51:8b00:f25b:24%enp2s0) làm trường hợp kiểm thử và chạy các bài kiểm thử liên quan. Hoàn tất khi địa chỉ được phân tích mà không phát sinh lỗi đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

kind/bug needs/triage os/linux
What happened?

Hi there,
I've got this issue using Crowsed with apache2 bouncer on a local link.

crowdsec: cannot parse the client address 'fe80::ac51:8b00:f25b:24%enp2s0'

The zone index doesn't seems to be handled correctly.

What did you expect to happen?

No error in log files.

How can we reproduce it (as minimally and precisely as possible)?

Use crowdsec on a local link ipv6 or fake a test with these kind of values.

Anything else we need to know?

No response

Crowdsec version
$ cscli version
version: v1.8.2-debian-pragmatic-amd64-3d369d64
Codename: alphaga
BuildDate: 2026-10-27_14:05:00
GoVersion: 1.27.1
Platform: linux
libre2: C++
User-Agent: crowdsec/v1.8.2-debian-pragmatic-amd64-3d369d64-linux
Constraint_parser: >= 1.0, <= 3.0
Constraint_scenario: >= 1.0, <= 3.0
Constraint_api: v1
Constraint_acquis: >= 1.0, < 2.0
Built-in optional components: cscli_setup, datasource_appsec, datasource_cloudwatch, datasource_docker, datasource_file, datasource_http, datasource_journalctl, datasource_k8s-audit, datasource_kafka, datasource_kinesis, datasource_kubernetes, datasource_loki, datasource_s3, datasource_syslog, datasource_victorialogs, datasource_wineventlog, db_mysql, db_postgres, db_sqlite
OS version

No response

Enabled collections and parsers

No response

Acquisition config

No response

Config show

No response

Prometheus metrics

No response

Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.

No response

Ngôn ngữ chính
Go
Star
15.1k
Fork
726
Merge trung bình
4 ngày 23 giờ
Pull request đã merge (30 ngày)
27

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của crowdsecurity/crowdsec

Tất cả issue của crowdsecurity/crowdsec

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.