Don't include KeySign on tunnel v2
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
nemunaire 2023-03-15 21:22:34 +01:00
parent be98438120
commit ab909d12e7

View File

@ -152,8 +152,11 @@ PersistentKeepalive = 5
# MyNetwork=%s/%d # MyNetwork=%s/%d
# GWIPv6=%s # GWIPv6=%s
# MyLogin=%s # MyLogin=%s
# KeySign=%s `, base64.StdEncoding.EncodeToString(tinfo.SrvPubKey), "82.64.31.248", tinfo.SrvPort, tinfo.CltIPv6, token.SuffixIP, 64, tinfo.CltIPv6, tinfo.CltRange, tinfo.SrvGW6, student.Login)))
`, base64.StdEncoding.EncodeToString(tinfo.SrvPubKey), "82.64.31.248", tinfo.SrvPort, tinfo.CltIPv6, token.SuffixIP, 64, tinfo.CltIPv6, tinfo.CltRange, tinfo.SrvGW6, student.Login, base64.StdEncoding.EncodeToString(token.GenKeySign())))) if version > 2 {
w.Write([]byte(fmt.Sprintf(`# KeySign=%s`, base64.StdEncoding.EncodeToString(token.GenKeySign()))))
}
} }
func updateWgTunnel(student *adlin.Student, ps httprouter.Params, body []byte) (interface{}, error) { func updateWgTunnel(student *adlin.Student, ps httprouter.Params, body []byte) (interface{}, error) {