AdguardTeam / AdguardTeam/dnsproxy

Parse error while parsing upstreams configuration from a text file

Đang mở
#409 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
waiting for repro
Ngôn ngữ chính
Go
Star
3.3k
Fork
343
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

OpenWRT 23.05.4, dnsproxy v0.67.0.
Part of config for service:

config dnsproxy 'servers'
list bootstrap 'tls://8.8.8.8'
list fallback '/etc/dnsproxy/fallback_list'
list upstream '/etc/dnsproxy/dnslist'

I get an error with this:
Sat Aug 3 15:20:45 2024 daemon.err dnsproxy[12495]: 2024/08/03 12:20:45 [fatal] error while parsing upstreams configuration: parsing error at index 0: cannot prepare the upstream: invalid address /etc/dnsproxy/dnslist: bad hostname "/etc/dnsproxy/dnslist": bad top-level domain name label "/etc/dnsproxy/dnslist": bad top-level domain name label rune '/'

But when I run dnsproxy from console it works. For example:

dnsproxy -l 127.0.2.1 -p 5354 -u /etc/dnsproxy/dnslist

In previous versions, reading from a file worked fine.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.