[GH-ISSUE #4750] a switch to select the config file format. i would like to use toml #3755

Closed
opened 2026-05-05 14:24:21 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @halifir on GitHub (Apr 13, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4750

Describe the feature request

$ frps -c /etc/frp/frps.toml
result
json: unknown field "bind_addr"

I would like to have set the settings with a more human readalble format like .ini oder .toml instead of json for JAVA

switch like --config-toml
frps --cconfig-toml /etc/frp/frps.toml
or
frps --cconfig-ini /etc/frp/frps.ini
would be a nice feature.

best reagards

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @halifir on GitHub (Apr 13, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4750 ### Describe the feature request $ frps -c /etc/frp/frps.toml result json: unknown field "bind_addr" I would like to have set the settings with a more human readalble format like .ini oder .toml instead of json for JAVA switch like --config-toml frps --cconfig-toml /etc/frp/frps.toml or frps --cconfig-ini /etc/frp/frps.ini would be a nice feature. best reagards ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [x] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Apr 14, 2025):

Don't use bind_addr if you want to use toml. Read the docs first.

<!-- gh-comment-id:2800375144 --> @fatedier commented on GitHub (Apr 14, 2025): Don't use `bind_addr` if you want to use toml. Read the docs first.
Author
Owner

@halifir commented on GitHub (Apr 14, 2025):

I understand, but I read the docs.
frpc and frps are transforming toml first internal to JSON and if there is a typo in the config by changing .ini to .toml, than the frpc and frsp are displaying an error with "JSON".
The error is misleading, because I used toml, but frpc and frps are exposing internal programming to the user.
Thats ok, the program is with version 0. just in beta and using very high CPU rate. Maybe version 1 will be better.
thank yyou and bye

<!-- gh-comment-id:2800910702 --> @halifir commented on GitHub (Apr 14, 2025): I understand, but I read the docs. frpc and frps are transforming toml first internal to JSON and if there is a typo in the config by changing .ini to .toml, than the frpc and frsp are displaying an error with "JSON". The error is misleading, because I used toml, but frpc and frps are exposing internal programming to the user. Thats ok, the program is with version 0. just in beta and using very high CPU rate. Maybe version 1 will be better. thank yyou and bye
Author
Owner

@fatedier commented on GitHub (Apr 14, 2025):

Please read the doc first and use bindAddr.

<!-- gh-comment-id:2800923595 --> @fatedier commented on GitHub (Apr 14, 2025): Please read the doc first and use `bindAddr`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3755
No description provided.