lncfg+config: use address string in IsLoopback
This commit is contained in:
3 files changed
+5
-8
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user