mirror of
https://github.com/namecoin/ncdns
synced 2024-11-18 03:26:00 +00:00
12 lines
177 B
Go
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
|
|
}
|