主 题:DDNS 学习了
发 布 者:G-1473
标签分类: 日常
时 间:2026-09-23 16:10:55
内容预览:入手了个WAPAC Hinet,依旧像个新兵蛋子,今天的ipv4不能直连既然有额外的IPV6,就在Singbox又弄了个优先IPV6落地,中转都要填ipv4的ddns,不然延迟会高再附一个singbox优先IPV6bashpython3 - %26lt%3b%26lt%3b'PY'import jsonp='/etc/sing-box/config.json'with open(p) as f:c=json.load(f)for o in c.get('outbounds', []):if o.get('tag') == 'direct-out':o['domain_resolver'] = {"server": "local","strategy": "prefer_ipv6"}with open(p,'w') as f:json.dump(c,f,ensure_ascii=False,indent=2)f.write('\n')PYbash sing-box check -c /etc/sing-box/config.jsonbash systemctl restart sing-box
直达链接: https://www.nodeseek.com/post-944420-1
发 布 者:G-1473
标签分类: 日常
时 间:2026-09-23 16:10:55
内容预览:入手了个WAPAC Hinet,依旧像个新兵蛋子,今天的ipv4不能直连既然有额外的IPV6,就在Singbox又弄了个优先IPV6落地,中转都要填ipv4的ddns,不然延迟会高再附一个singbox优先IPV6bashpython3 - %26lt%3b%26lt%3b'PY'import jsonp='/etc/sing-box/config.json'with open(p) as f:c=json.load(f)for o in c.get('outbounds', []):if o.get('tag') == 'direct-out':o['domain_resolver'] = {"server": "local","strategy": "prefer_ipv6"}with open(p,'w') as f:json.dump(c,f,ensure_ascii=False,indent=2)f.write('\n')PYbash sing-box check -c /etc/sing-box/config.jsonbash systemctl restart sing-box
直达链接: https://www.nodeseek.com/post-944420-1