From ed00f5d530ea09628353df31699dc85536ff9fa4 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Mon, 31 Jul 2023 15:59:20 -0500 Subject: [PATCH] Remove unused config code (last edited 4yrs ago) (#938) --- main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/main.go b/main.go index ab2bd51..c50a48c 100644 --- a/main.go +++ b/main.go @@ -220,11 +220,6 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg WithField("preferredRanges", hostMap.preferredRanges). Info("Main HostMap created") - /* - config.SetDefault("promoter.interval", 10) - go hostMap.Promoter(config.GetInt("promoter.interval")) - */ - punchy := NewPunchyFromConfig(l, c) lightHouse, err := NewLightHouseFromConfig(ctx, l, c, tunCidr, udpConns[0], punchy) switch { @@ -255,10 +250,6 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg handshakeManager := NewHandshakeManager(l, tunCidr, preferredRanges, hostMap, lightHouse, udpConns[0], handshakeConfig) lightHouse.handshakeTrigger = handshakeManager.trigger - //TODO: These will be reused for psk - //handshakeMACKey := config.GetString("handshake_mac.key", "") - //handshakeAcceptedMACKeys := config.GetStringSlice("handshake_mac.accepted_keys", []string{}) - serveDns := false if c.GetBool("lighthouse.serve_dns", false) { if c.GetBool("lighthouse.am_lighthouse", false) {