Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 315 Bytes
package memberlist
import (
func LogAddress(addr net.Addr) string {
if addr == nil {
return "from=<unknown address>"
return fmt.Sprintf("from=%s", addr.String())
func LogConn(conn net.Conn) string {
if conn == nil {
return LogAddress(nil)
return LogAddress(conn.RemoteAddr())
You can’t perform that action at this time.