|
|
@ -63,6 +63,7 @@ func NewServer(cfg *ServerConfig) (s *Server, err error) {
|
|
|
|
s.cfg.canonicalNameservers[i] = dns.Fqdn(s.cfg.canonicalNameservers[i])
|
|
|
|
s.cfg.canonicalNameservers[i] = dns.Fqdn(s.cfg.canonicalNameservers[i])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if s.cfg.VanityIPs != "" {
|
|
|
|
vanityIPs := strings.Split(s.cfg.VanityIPs, ",")
|
|
|
|
vanityIPs := strings.Split(s.cfg.VanityIPs, ",")
|
|
|
|
for _, ips := range vanityIPs {
|
|
|
|
for _, ips := range vanityIPs {
|
|
|
|
ip := net.ParseIP(ips)
|
|
|
|
ip := net.ParseIP(ips)
|
|
|
@ -71,6 +72,7 @@ func NewServer(cfg *ServerConfig) (s *Server, err error) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
s.cfg.vanityIPs = append(s.cfg.vanityIPs, ip)
|
|
|
|
s.cfg.vanityIPs = append(s.cfg.vanityIPs, ip)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
s.namecoinConn = namecoin.Conn{
|
|
|
|
s.namecoinConn = namecoin.Conn{
|
|
|
|
Username: cfg.NamecoinRPCUsername,
|
|
|
|
Username: cfg.NamecoinRPCUsername,
|
|
|
|