2
0
mirror of https://github.com/namecoin/ncdns synced 2024-11-16 00:13:01 +00:00
ncdns/server/serverinfo.go
2014-12-24 17:05:17 +00:00

12 lines
177 B
Go

package server
import denet "github.com/hlandau/degoutils/net"
func (s *Server) ServerName() string {
n := s.cfg.SelfName
if n == "" {
n = denet.Hostname()
}
return n
}