Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
jdknives committed Nov 27, 2019
1 parent 5268339 commit 6b404f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/skywire-cli/commands/node/gen-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ func defaultSkyproxyClientConfig() visor.AppConfig {
}

func getLocalIPAddress() string {
addrs, _ := net.InterfaceAddrs()
addrs, err := net.InterfaceAddrs()
if err != nil {
log.WithError(err)
}

for _, a := range addrs {
if ipnet, ok := a.(*net.IPNet); ok && !ipnet.IP.IsLoopback() {
Expand All @@ -201,4 +204,4 @@ func getLocalIPAddress() string {
}
}
return ""
}
}

0 comments on commit 6b404f0

Please sign in to comment.