fix golint issues in core/netx (#501)
This commit is contained in:
@@ -2,6 +2,7 @@ package netx
|
|||||||
|
|
||||||
import "net"
|
import "net"
|
||||||
|
|
||||||
|
// InternalIp returns an internal ip.
|
||||||
func InternalIp() string {
|
func InternalIp() string {
|
||||||
infs, err := net.Interfaces()
|
infs, err := net.Interfaces()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user