Browse Source

remove obsolete consistency check

tor-listeners.listeners was checked against listen,
but listen is obsolete now, so config load would fail
on a config that used the new style `listeners` instead of
`listen` --- unless tor-listeners.listeners was empty, which
it should be under the new style, but there's no need to enforce
that
tags/v1.2.0-rc1
Shivaram Lingamneni 5 years ago
parent
commit
ce651b4a90
1 changed files with 0 additions and 13 deletions
  1. 0
    13
      irc/config.go

+ 0
- 13
irc/config.go View File

@@ -797,19 +797,6 @@ func LoadConfig(filename string) (config *Config, err error) {
797 797
 		}
798 798
 	}
799 799
 
800
-	for _, listenAddress := range config.Server.TorListeners.Listeners {
801
-		found := false
802
-		for _, configuredListener := range config.Server.Listen {
803
-			if listenAddress == configuredListener {
804
-				found = true
805
-				break
806
-			}
807
-		}
808
-		if !found {
809
-			return nil, fmt.Errorf("%s is configured as a Tor listener, but is not in server.listen", listenAddress)
810
-		}
811
-	}
812
-
813 800
 	err = config.prepareListeners()
814 801
 	if err != nil {
815 802
 		return nil, fmt.Errorf("failed to prepare listeners: %v", err)

Loading…
Cancel
Save