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
38
register.go
38
register.go
|
|
@ -17,32 +17,21 @@ 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"`
|
Name string `xml:"name"`
|
||||||
//OS string `xml:"os"`
|
Host string `xml:"host"`
|
||||||
//OSVer string `xml:"osver"`
|
Password string `xml:"password"`
|
||||||
//Qt string `xml:"qt"`
|
Port int `xml:"port"`
|
||||||
//Is64Bit bool `xml:"is64bit"`
|
Url string `xml:"url"`
|
||||||
//CpuId string `xml:"cpuid"`
|
Digest string `xml:"digest"`
|
||||||
//CpuIdExt string `xml:"cpuidext"`
|
Users int `xml:"users"`
|
||||||
//CpuSSE2 bool `xml:"cpusse2"`
|
Channels int `xml:"channels"`
|
||||||
Name string `xml:"name"`
|
Location string `xml:"location"`
|
||||||
Host string `xml:"host"`
|
|
||||||
Password string `xml:"password"`
|
|
||||||
Port int `xml:"port"`
|
|
||||||
Url string `xml:"url"`
|
|
||||||
Digest string `xml:"digest"`
|
|
||||||
Users int `xml:"users"`
|
|
||||||
Channels int `xml:"channels"`
|
|
||||||
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))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue