token-validator: add suffixip and version in db

This commit is contained in:
nemunaire 2020-04-02 16:07:56 +02:00
commit 28d5aa8fca
3 changed files with 167 additions and 1 deletions

View file

@ -42,7 +42,7 @@ func showWgTunnel(student adlin.Student, ps httprouter.Params, body []byte) (int
func genWgToken(student adlin.Student, ps httprouter.Params, body []byte) (interface{}, error) {
// Generate a token to access related wg info
return student.NewTunnelToken()
return student.NewTunnelToken(0)
}
type TunnelInfo struct {