添加网卡 alias

This commit is contained in:
bjdgyc
2023-10-30 11:38:31 +08:00
parent 6788a875a2
commit 57990d3d2a
3 changed files with 12 additions and 6 deletions

View File

@@ -238,7 +238,11 @@ func SetPostAuthXml(g *dbdata.Group, w http.ResponseWriter) error {
if err != nil {
return err
}
HttpSetHeader(w, "X-CSTP-Post-Auth-XML", result.String())
xmlAuth := ""
for _, v := range strings.Split(result.String(), "\n") {
xmlAuth += strings.TrimSpace(v)
}
HttpSetHeader(w, "X-CSTP-Post-Auth-XML", xmlAuth)
return nil
}