lncfg+config: use address string in IsLoopback

This commit is contained in:
Wilmer Paulino committed 2018-06-27 19:03:30 -07:00
1 parent 17399994e4
commit bbeb8b2ddd
3 files changed
+5 -8

No files matched your search

+1 -4
View File
@@ -875,10 +875,7 @@ func loadConfig() (*config, error) {
// inbound support is enabled.
if cfg.Tor.V2 || cfg.Tor.V3 {
for _, addr := range cfg.Listeners {
// Due to the addresses being normalized above, we can
// skip checking the error.
host, _, _ := net.SplitHostPort(addr.String())
if lncfg.IsLoopback(addr) {
if lncfg.IsLoopback(addr.String()) {
continue
}