1
0
Fork 0
forked from External/grumble

Remove unused XML fields in register.go.

This commit is contained in:
Mikkel Krautz 2011-11-10 14:11:13 +01:00
parent b94b04d2de
commit ccbc282f1e

View file

@ -18,16 +18,8 @@ import (
type Register struct { type Register struct {
XMLName xml.Name `xml:"server"` XMLName xml.Name `xml:"server"`
//MacHash string `xml:"machash"`
Version string `xml:"version"` Version string `xml:"version"`
Release string `xml:"release"` Release string `xml:"release"`
//OS string `xml:"os"`
//OSVer string `xml:"osver"`
//Qt string `xml:"qt"`
//Is64Bit bool `xml:"is64bit"`
//CpuId string `xml:"cpuid"`
//CpuIdExt string `xml:"cpuidext"`
//CpuSSE2 bool `xml:"cpusse2"`
Name string `xml:"name"` Name string `xml:"name"`
Host string `xml:"host"` Host string `xml:"host"`
Password string `xml:"password"` Password string `xml:"password"`
@ -39,10 +31,7 @@ type Register struct {
Location string `xml:"location"` Location string `xml:"location"`
} }
const ( const registerUrl = "https://mumble.hive.no/register.cgi"
registerAddr = "mumble.hive.no:443"
registerUrl = "https://mumble.hive.no/register.cgi"
)
// Determines whether a server is public by checking whether the // Determines whether a server is public by checking whether the
// config values required for public registration are set. // config values required for public registration are set.
@ -114,7 +103,6 @@ func (server *Server) RegisterPublicServer() {
go func() { go func() {
tr := &http.Transport{ tr := &http.Transport{
TLSClientConfig: config, TLSClientConfig: config,
DisableCompression: true,
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
r, err := client.Post(registerUrl, "text/xml", ioutil.NopCloser(buf)) r, err := client.Post(registerUrl, "text/xml", ioutil.NopCloser(buf))