fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
80.5k stars 12.74k forks source link

How to change the configuration from frpc.ini to frpc.toml #4178

Open bannyhm opened 3 weeks ago

bannyhm commented 3 weeks ago

Describe the feature request

the following configuration is in fprc.ini, how can I fix it so that it works correctly in frpc.toml

[common] forward_all = tcp+udp all_use_encryption = false all_use_compression = false server_addr = x.x.x.x server_port = 9100 plugin_user = abc plugin_passwd = abc authentication_method = token token = 12345678 dns_server = x.x.x.x

udp_forward = true

[web_tcp] type = tcp local_ip = 127.0.0.1 local_port = 6000 remote_port = 6000 use_encryption = false use_compression = false protocol = tcp

[web_udp] type = udp local_ip = 127.0.0.1 local_port = 6000 remote_port = 6000 use_encryption = false use_compression = false protocol = udp

Describe alternatives you've considered

No response

Affected area

fatedier commented 3 weeks ago

You can continue to use the INI format configuration file until you have new feature requirements, then rewrite the TOML format configuration file according to the document.

bannyhm commented 3 weeks ago

Thank you for your reply. I'm trying to upgrade from version 51.3 to version 57.0, but as I see from the documentation and frpc-full example files, I can't find an example to use a udp connection. Or can I just convert my frpc.ini lines to frpc.toml format by changing the field names as stated in the documentation and enclosing the line values ​​in " "? My frpc.ini settings with version 51.3 work perfectly, except for problems with already exists

xqzr commented 3 weeks ago

3818

bannyhm commented 3 weeks ago

Thank you very much