generated from VLADIMIR/template
fix
This commit is contained in:
@@ -2,7 +2,7 @@ package network_utils
|
||||
|
||||
import "net"
|
||||
|
||||
// GetLocalIPv4Addresses returns non-loopback IPv4 addresses of the host.
|
||||
// GetLocalIPv4Addresses возвращает IPv4-адреса хоста, кроме loopback-адресов.
|
||||
func GetLocalIPv4Addresses() ([]string, error) {
|
||||
addrs, err := net.InterfaceAddrs()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user