Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inbound的地址设置 #1765

Closed
4 of 5 tasks
ziyouwa opened this issue May 14, 2024 · 1 comment
Closed
4 of 5 tasks

inbound的地址设置 #1765

ziyouwa opened this issue May 14, 2024 · 1 comment

Comments

@ziyouwa
Copy link

ziyouwa commented May 14, 2024

操作系统

Linux

系统版本

Gentoo Linux

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

1.9.0-rc.16

描述

  {
    "tag": "doh-ali",
    "address": "https://dns.alidns.com/dns-query",
    "address_resolver": "dns-ct",
    "strategy": "prefer_ipv4",
    "detour": "direct-out"
  },
  {
    "tag": "dns-ct",
    "address": "114.114.114.114",
    "strategy": "prefer_ipv4",
    "detour": "direct-out"
  },
  {
    "tag": "google",
    "address": "https://dns.google/dns-query",
    "address_resolver": "dns-ct",
    "strategy": "prefer_ipv4",
    "detour": "proxy"
  },

"inbounds": [
{
"type": "direct",
"tag": "dns-in",
"network": "udp",
"listen": "::",
"listen_port": 53
}
]
局域网网关使用sing-box作为代理。以上配置时,只会侦听在ipv4的本地地址,该如何设置才会侦听在本地ipv6地址上?或者是上面的dns服务器"strategy": "prefer_ipv4"设置得不对吗?这个设置应该是ipv4优先,并没有不解析ipv6吧?

重现方式

使用以上配置即可

日志

No response

支持我们

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
@dyhkwong
Copy link
Contributor

dyhkwong commented May 16, 2024

golang 的 :: 在双栈系统上是默认只监听 ipv6 但同时兼容 ipv4 的,不知道你是怎么确定 :: 只监听了 ipv4 的

@dyhkwong dyhkwong closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants