// ServerName returns the name of the Peer this Peer is connected to
// if this Peer is not a server
ServerName returns the name of the Peer this Peer is connected to
if this Peer is not a server
// ServerName returns the name of the Peer this Peer is connected to // if this Peer is not a server
func (p *Peer) ServerName() string {
	servers := GetConfKey("servers").(map[interface{}]interface{})
	for server := range servers {
		if GetConfKey("servers:"+server.(string)+":address") == p.Server().Addr().String() {
			return server.(string)
		}
	}
	return ""
}
func ( p * Peer ) ServerName ( ) string { servers := GetConfKey ( " " ) . ( map [ interface { } ] interface { } ) for server := range servers { if GetConfKey ( " " + server . ( string ) + " " ) == p . Server ( ) . Addr ( ) . String ( ) { return server . ( string ) } } return " " }
ServerName returns the name of the Peer this Peer is connected to
if this Peer is not a server
ServerName returns the name of the Peer this Peer is connected to if this Peer is not a server