From b70a7d03af810dd9622693f8f184aa6cff99fbcb Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 27 Sep 2025 05:47:17 -0500 Subject: [PATCH] Add autointerface for testing --- cmd/reticulum-go/main.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cmd/reticulum-go/main.go b/cmd/reticulum-go/main.go index 2d60c6b..274e0e2 100644 --- a/cmd/reticulum-go/main.go +++ b/cmd/reticulum-go/main.go @@ -267,14 +267,20 @@ func main() { } debugLog(2, "Configuration loaded from: %s", cfg.ConfigPath) - // Add default TCP interfaces if none configured if len(cfg.Interfaces) == 0 { - debugLog(2, "No interfaces configured, adding default TCP interfaces") + debugLog(2, "No interfaces configured, adding default interfaces") cfg.Interfaces = make(map[string]*common.InterfaceConfig) + // Auto interface for local discovery + cfg.Interfaces["Auto Discovery"] = &common.InterfaceConfig{ + Type: "AutoInterface", + Enabled: true, + Name: "Auto Discovery", + } + cfg.Interfaces["Go-RNS-Testnet"] = &common.InterfaceConfig{ Type: "TCPClientInterface", - Enabled: true, + Enabled: false, TargetHost: "127.0.0.1", TargetPort: 4242, Name: "Go-RNS-Testnet", @@ -435,8 +441,7 @@ func (r *Reticulum) Start() error { debugLog(1, "Could not send announce: %v", err) } - // Announce every 5 minutes - time.Sleep(5 * time.Minute) + time.Sleep(60 * time.Second) } }()