3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 13:29:27 +01:00
ergo/irc/utils/net_nonlinux.go
Shivaram Lingamneni 492109f29d upgrade go to 1.17
2021-08-20 15:59:26 -04:00

16 lines
326 B
Go

//go:build !linux
// +build !linux
package utils
import (
"fmt"
"net"
)
// Output a description of a connection that can identify it to other systems
// administration tools.
func DescribeConn(conn net.Conn) (description string) {
return fmt.Sprintf("%s <-> %s", conn.LocalAddr().String(), conn.RemoteAddr().String())
}