all: add support for freshtomato

This commit is contained in:
Cuong Manh Le
2023-05-25 09:52:44 +07:00
committed by Cuong Manh Le
parent fc502b920b
commit ee53db1e35
14 changed files with 532 additions and 76 deletions
+2 -3
View File
@@ -42,12 +42,11 @@ func initRouterCLI() {
if platform == "auto" {
platform = router.Name()
}
switch platform {
case router.DDWrt, router.Merlin, router.OpenWrt, router.Ubios, router.Synology:
default:
if !router.IsSupported(platform) {
unsupportedPlatformHelp(cmd)
os.Exit(1)
}
exe, err := os.Executable()
if err != nil {
mainLog.Fatal().Msgf("could not find executable path: %v", err)
+1 -1
View File
@@ -175,7 +175,7 @@ func (p *prog) setDNS() {
switch router.Name() {
case router.DDWrt, router.OpenWrt, router.Ubios:
// On router, ctrld run as a DNS forwarder, it does not have to change system DNS.
// Except for Merlin, which has WAN DNS setup on boot for NTP.
// Except for Merlin/Tomato, which has WAN DNS setup on boot for NTP.
return
}
if cfg.Listener == nil || cfg.Listener["0"] == nil {