zhboner / realm

A network relay tool
MIT License
1.54k stars 285 forks source link

no errors reported when config file is not correct #56

Closed stark131 closed 2 years ago

stark131 commented 2 years ago

example wrong config file listed below, note that there is a "," instead of a ";" between the server key and cert. { "log":{ "level":"info", "output":"/var/log/realm-tls.log" }, "network":{ "zero_copy":true }, "endpoints":[ { "listen":"0.0.0.0:443", "listen_transport": "tls;cert=cert.cer,key=cert.key", "remote":"127.0.0.1:444" } ] }

the correct config file should be:

{ "log":{ "level":"info", "output":"/var/log/realm-tls.log" }, "network":{ "zero_copy":true }, "endpoints":[ { "listen":"0.0.0.0:443", "listen_transport": "tls;cert=cert.cer;key=cert.key", "remote":"127.0.0.1:444" } ] }