zhboner / realm

A network relay tool
MIT License
1.52k stars 282 forks source link

Is it possible to add a command-line function to check whether the syntax and parameters of the configuration file are correct. #110

Closed omaidb closed 2 weeks ago

omaidb commented 1 year ago

I use toml or json configuration files. Is it possible to add a command-line tool to check whether the syntax and parameters of the configuration file are correct. Because I just noticed that FTO and network.zero_copy are deprecated; I just realized I was using an unsupported parameter in the toml.

zephyrchien commented 1 year ago

Any unknown field in the config file will be ignored, only useful ones(listed in the doc) are left. So you dont need to worry about this..

zephyrchien commented 11 months ago

I'm planning to add some warnings where the user's input may lead to unexpected results.

omaidb commented 11 months ago

I'm planning to add some warnings where the user's input may lead to unexpected results.

good idea