AdguardTeam / AdguardTeam/dnsproxy

Parse error while parsing upstreams configuration from a text file

未關閉
#409 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
waiting for repro
主要語言
Go
星號
3.3k
分支
343
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。