Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for mustGetLocalIPs (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. cmd/net.go

    	xh, err := xnet.ParseHost(hostPort)
    	if err != nil {
    		logger.FatalIf(err, "Unable to split host port %s", hostPort)
    	}
    	return xh.Name, xh.Port.String()
    }
    
    // mustGetLocalIPs returns IPs of local interface
    func mustGetLocalIPs() (ipList []net.IP) {
    	ifs, err := net.Interfaces()
    	logger.FatalIf(err, "Unable to get IP addresses of this host")
    
    	for _, interf := range ifs {
    		addrs, err := interf.Addrs()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 9.6K bytes
    - Click Count (1)
Back to Top