mirror of
https://github.com/jeremyd/ergo.git
synced 2026-04-26 15:40:00 -07:00
fix non-linux builds
This commit is contained in:
14
irc/utils/net_nonlinux.go
Normal file
14
irc/utils/net_nonlinux.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// +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())
|
||||
}
|
||||
Reference in New Issue
Block a user