named-data / YaNFD

Yet another Named Data Networking Forwarding Daemon
https://pkg.go.dev/github.com/named-data/YaNFD
MIT License
12 stars 10 forks source link

yanfd: disable Ethernet/Unix transports via config file #16

Closed yoursunny closed 2 years ago

yoursunny commented 2 years ago

According to README.md:

YaNFD's configuration is split into two components: startup configuration and runtime configuration. Startup configuration for YaNFD is performed via a TOML file

However, the existing program does not fulfill this design: there are several command line flags that are part of the startup configuration, which existed outside of the TOML file.

This PR partially restores the design intention by deprecating -disable-ethernet and -disable-unix flags and reproducing their functionality in the TOML file.

zjkmxy commented 2 years ago

Great. I also think these two options should go to the config file.