trojan-gfw / openwrt-trojan

trojan and its dependencies for OpenWrt
266 stars 115 forks source link

optimize init.d script and config file. #24

Closed newclear closed 4 years ago

newclear commented 4 years ago

Optimize init.d script and config file:

  1. add config options into /etc/config/trojan
  2. generate config.json from uci config options.
  3. support multiple trojan instances, E.g. client instance & nat instance.
wongsyrone commented 4 years ago

Sorry, we should NOT use UCI here.

newclear commented 4 years ago

"uci config" means /etc/config/trojan. This is OpenWrt package, right?

wongsyrone commented 4 years ago

Yes, it doesn't mean we should put all configurations into the UCI (Unified Configuration Interface) file.