forked from External/grumble
Remove unused XML fields in register.go.
This commit is contained in:
parent
b94b04d2de
commit
ccbc282f1e
1 changed files with 13 additions and 25 deletions
14
register.go
14
register.go
|
|
@ -18,16 +18,8 @@ import (
|
|||
|
||||
type Register struct {
|
||||
XMLName xml.Name `xml:"server"`
|
||||
//MacHash string `xml:"machash"`
|
||||
Version string `xml:"version"`
|
||||
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"`
|
||||
Host string `xml:"host"`
|
||||
Password string `xml:"password"`
|
||||
|
|
@ -39,10 +31,7 @@ type Register struct {
|
|||
Location string `xml:"location"`
|
||||
}
|
||||
|
||||
const (
|
||||
registerAddr = "mumble.hive.no:443"
|
||||
registerUrl = "https://mumble.hive.no/register.cgi"
|
||||
)
|
||||
const registerUrl = "https://mumble.hive.no/register.cgi"
|
||||
|
||||
// Determines whether a server is public by checking whether the
|
||||
// config values required for public registration are set.
|
||||
|
|
@ -114,7 +103,6 @@ func (server *Server) RegisterPublicServer() {
|
|||
go func() {
|
||||
tr := &http.Transport{
|
||||
TLSClientConfig: config,
|
||||
DisableCompression: true,
|
||||
}
|
||||
client := &http.Client{Transport: tr}
|
||||
r, err := client.Post(registerUrl, "text/xml", ioutil.NopCloser(buf))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue