luci-app-xfrpc: generate wrong xfrpc.ini file
Is there an existing issue for this?
- [x] I have searched among all existing issues (including closed issues)
screenshots or captures
No response
Actual behaviour
xfrpc failed to start
/etc/config/xfrpc is
config xfrpc 'common'
option enabled '1'
option loglevel '7'
option server_addr 'xx.xx.xx.x'
option server_port '123'
option token 'xxxxxxxxxxx'
config xfrpc 'web'
option type 'tcp'
option local_ip '127.0.0.1'
option local_port '80'
option remote_port 'cccc'
config xfrpc 'AMT'
option type 'tcp'
option local_ip '192.168.1.1'
option local_port 'ccccc'
xfrpc config file above generate wrong xfrpc.ini file in /var/etc/
/var/etc/xfrpc.ini
[common]
server_addr = xx.xx.xx.x
server_port = xxx
token = xxxxxxxxxxx
[web]
server_addr = xx.xx.xx.x
server_port = xxx
token = xxxxxxxxxxx
[AMT]
server_addr = xx.xx.xx.x
server_port = xxx
token = xxxxxxxxxxx
Expected behaviour
generate right xfrpc.ini to make xfrpc work
Steps to reproduce
go to luci-app-xfrpc (reverse proxy under services) ,change settings and apply .
Additional Information
Hostname HC5661
Model HiWiFi HC5661
Architecture MediaTek MT7620A ver:2 eco:6
Target Platform ramips/mt7620
Firmware Version OpenWrt SNAPSHOT r31209-0147d213ff / LuCI Master 25.271.67054~84ad0f3
Kernel Version 6.12.49
What browsers do you see the problem on?
Chrome
Relevant log output
And what generates the ini file?
And what generates the ini file?
/etc/init.d/xfrpc generate the ini file,it reads /etc/config/xfrpc then generate /var/etc/xfrpc.ini ,and start xfrpc
I encountered the same issue on xiaomi-ax3600 with openwrt 24.10.4. The /var/etc/xfrpc.ini file generated through uci configuration was incorrect, preventing it from starting. However, after deleting the uci configuration(Retain the common section), put port forwardin config to /etc/config/xfrpc, it worked normally.