parse host as FQDN or IP

This commit is contained in:
wish
2022-08-04 23:52:13 +10:00
parent a7ec76f865
commit e9cc5cc3e2
6 changed files with 23 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ import (
func serverList(s *Server, w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w,
`<?xml version="1.0"?><server_groups><group idx='0' nam='Erupe' ip='%s' port="%d"/></server_groups>`,
s.erupeConfig.HostIP,
s.erupeConfig.Host,
s.erupeConfig.Sign.Port,
)
}