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

NaiveProxy 服務端無法啟用 #235

Closed
7 of 8 tasks
ctt828 opened this issue Dec 3, 2024 · 0 comments
Closed
7 of 8 tasks

NaiveProxy 服務端無法啟用 #235

ctt828 opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ctt828
Copy link

ctt828 commented Dec 3, 2024

Bug description

  • 透過Web UI進行sing-box + NaiveProxy服務器設置後啟用失敗(顯示未運行).
  • 發現是插件產生的sing-box-s.json中含有inbounds[0].users[0].name字段,不為sing-box 1.10.1所接受而報錯退出.
  • 實測手動僅刪除name字段後再手動啟動sing-box, 確認可以運行成功.

ImmortalWrt 23.05.4 r28061-399f9a1db3
luci-app-homeproxy: git-24.327.19736-2ee2d26
sing-box: 1.10.1

Actual behavior

No response

Expected behavior

No response

Steps to reproduce

No response

HomeProxy configuration

N/A

sing-box configuration

{
        "log": {
                "disabled": false,
                "level": "warn",
                "output": "/var/run/homeproxy/sing-box-s.log",
                "timestamp": true
        },
        "inbounds": [
                {
                        "type": "naive",
                        "tag": "cfg-Naive-in",
                        "listen": "::",
                        "listen_port": 5443,
                        "tcp_fast_open": true,
                        "udp_timeout": "300s",
                        "sniff": true,
                        "sniff_override_destination": false,
                        "users": [
                                {
                                        "name": "cfg-Naive-server",
                                        "username": "xxx",
                                        "password": "xxx"
                                }
                        ],
                        "tls": {
                                "enabled": true,
                                "certificate_path": "xxx",
                                "key_path": "xxx"
                        }
                }
        ]
}

HomeProxy log

FATAL[0000] decode config at /var/run/homeproxy/sing-box-s.json: inbounds[0].users[0].name: json: unknown field "name"
2024-12-03 14:20:46 [DAEMON] Error: wrong server configuration detected.

sing-box log

N/A

OpenWrt/ImmortalWrt release

23.05.4

Device

x86

Additional information

No response

Terms

  • I confirm that the HomeProxy I installed is from official source, like GitHub artifacts or official ImmortalWrt opkg feeds.
  • I confirm that the Homeproxy I installed does not contain Clash mode support.
  • I confirm that the version of OpenWrt/ImmortalWrt I installed is >= 23.05.
  • I confirm that I have installed the latest version of HomeProxy and sing-box.
  • I confirm that I have read the sing-box documentation, understand the meaning of all the configuration items I added.
  • I confirm that I have not mixed iptables and nftables rules.
  • I confirm that I have not modified system DNS settings, or enabled any other DNS servers like MosDNS and SmartDNS.
  • I confirm that I have selected all terms blindly.
@ctt828 ctt828 added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant